Home
Sitemap
Site News
Downloads
FAQ
Contact
• Basic Tutorials •
Maps
The Database
Events
Graphic Resources
• More Advanced Tutorials •
Maps
Events
The Database
Event Systems
• RGSS •
Script Fixes
Script Systems
• Other •
Using RMXP
Mini Tutorials
Miscellaneous
• Reference •
Reference

In this tutorial you will learn...

• How to modify or hide the Timer graphic

Hey there! In this tutorial, I'll be showing you how to modify the timer graphic, or hide it completely. Now, this probably won't be a very long tutorial, but it's certainly something worth knowing how to do.

So, open up your project and open the script editor. In the script list, find the script entitled Sprite_Timer, and click on it. You'll see this screen...



Now, you'll probably be able to see at once where you can change the font and the font size. You can substitute any values that take your fancy in here: have a play around and see what looks best. If you want to change the colour, you'll have to scroll down the bottom, where you'll see this...



You see underneath the comment, where it says: self.bitmap.font.color.set(255, 255, 255)? These are, of course, the values to change the font colour. The values mean red, green and blue respectively, and 255 of all of them makes white. You can change these and see what happens when you use a timer.

Finally, (told you this would be a short tutorial!), if you want to hide the timer completely, you just need to comment out the lines of code that actually draw the timer, like this...



You see what I've done? To comment something out in Ruby or RGSS just means to add a hash to the beginning of the line. Now, if you go in-game and set a timer up, you'll not be able to see it. Handy for random weather systems, lantern oil systems and the like! If you need a little more information on using timers in events, check out my Using Timers tutorial. See you in my next tutorial!

:: << Previous Tutorial ::      :: Home ::      :: Next Tutorial >> ::

RPG Maker XP © 2005 Enterbrain Inc.           © 2004 Xiph. Org Foundation           Ruby © 1993 - 2003 Yukihiro Matsumoto
This site, including images and textual content, were created by and belong to me.
© 2006 - 2011 All rights reserved.

This website and tutorials have all been written in my free time (what there is of it!), and hosting can be rather costly, so any donations are very gratefully received - no matter how small - even if you can spare 50p I would be grateful!