| Latest News |
|
|
RPG Palace:
Maxy: A useful tutorial for those new to the RPG Maker series.
-----------------------------------------------------------------------
RPG MAKER 2000 TUTORIAL
:: Game Timer ::
By Kamau - mglanville@hotmail.com
Kamau's RPG Palace - http://rpgpalace.gamersuplink.com
-----------------------------------------------------------------------
This tutorial has been created to explain how to make a game timer.
The timer keeps track of how long you have been playing the game.
-----------------------------------------------------------------------
PART 1. Creating the game timer.
o Create a new event in the Common Events tab of the DataBase.
Call it Game Timer or something similar. Have it a Parallel
Process and the conditions switch as something like 'Begin'
which must be set at the start of the game or when you want to
start timing.
o Create 3 new variables, one called Timer Seconds, one called
Timer Minutes and one called Timer Hours. You could add one
called Timer Days if you think your RPG will last that long.^_^
o Put in these events:
Wait : 1.0s
Variable: Timer Seconds, +1
FORK Optn: Timer Seconds = 60
Timer Seconds, Set 0
Timer Minutes, +1
END Case
FORK Optn: Timer Minutes = 60
Timer Minutes, Set 0
Timer Hours, +1
END Case
o That's all you need to do for that. Every 1 second it adds 1 to
the seconds variable, then when that equals 60 it resets it and
adds 1 to the minutes variable. The same applies for hours.
-----------------------------------------------------------------------
PART 2. Creating the game timer item.
o Create a new item which will be used to show the game time.
You might want to call it Clock or Stopwatch or something along
those lines.
o Apply the following settings:
Classification - Switch
Price - 0 (this prevents you from selling it)
Use number of times - Limitless
ON Switch - Create a switch and name it Timer.
Available at - Field only
o Next create a new Common Event in the DataBase and call it
Use Clock or something. Make it a Parallel Process and have the
conditions switch as Timer.
o Add the following commands:
Messg: You have been playing for
\v[X] hours \v[Y] minutes \v[Z] seconds
Change Switch: Timer - OFF Set
o For those who don't know, entering \v[number] in a message
displays a variable's value depending on the number of the
variable. \v[1] displays the value of Variable 1.
X = Timer Hours variable number
Y = Timer Minutes variable number
Z = Timer Seconds variable number
-----------------------------------------------------------------------
|
|
|