|
|
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 >> ::
|
|