The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Bond Extreme on January 27, 2006, 04:30:03 AM

Title: Timing RPGM XP
Post by: Bond Extreme on January 27, 2006, 04:30:03 AM
Ok what I want to do is make a timer. What I am doing is that I want someone to find a switch in the ground in 15 seconds. If that person doesn't then you die. 8) So could someone tell me how to make a 15 seconds timer. And then when time runs out you die. LOL Thanks
Title: Timing RPGM XP
Post by: Tenraah on January 27, 2006, 04:43:22 AM
You should look around the forum first, before asking a question like this!
I think someone recently posted a topic about this.
Title: Timing RPGM XP
Post by: thatsmypie on January 27, 2006, 09:30:16 AM
Ummm... I dont know if this is possible unless you use a script... I may be wrong, i dunno.

EDIT: Damn i'm an idiot, yes you can make timers, just have an event and use the 'timer operations' command!
Title: Timing RPGM XP
Post by: blueXx on January 27, 2006, 12:55:08 PM
timer operations are well knowen to make troubles..
make a parallel process instead
precondition it with a switch we will call timer

when you want that clock to run turn timer on
this will tell the parallel to start running, the parallel itself looks like:

wait 300frames (15sec, this will not stop the player as this is a parallel event sec count btw is 20frame=1sec)
gameover

the event you are supposed to find will turn timer off, if done quickly enough the parallel will not reach the gameover
Title: Timing RPGM XP
Post by: Zeriab on January 28, 2006, 01:18:20 PM
If you do as blueXx say, you should note that leaving and entering the map will reset the timer (unless you're using a common event)
Title: Timing RPGM XP
Post by: blueXx on January 28, 2006, 01:41:59 PM
Quote from: ZeriabIf you do as blueXx say, you should note that leaving and entering the map will reset the timer (unless you're using a common event)

common event..
that has nothing to do with anything if he will use a common event the entire game will be stuck until the wait is over -.-

now, if you really wanna switch maps you have to put a parallel in each, doing the following:

wait 1 frame
v(timer) +1
if v(timer) = 300 then
-gameover
this way variable timer will keep growing, when it reaches 300 it's gameover
Title: Timing RPGM XP
Post by: Zeriab on January 28, 2006, 01:50:03 PM
Quote from: blueXx
common event..
that has nothing to do with anything if he will use a common event the entire game will be stuck until the wait is over -.-

It'll be stock if you use common events???  :shock:
Have I been blind to such a change from 2000 to XP?
I will certainly test this.

Edit: I have tested this and the results were, there were no freeze or stuck or whatsoever.
I am assuming that one did set the common event to be a Parallel Process.
I also noticed the timer reseting with the common event when changing map if you are not using a counter method like the one blueXx wrote.
Title: Timing RPGM XP
Post by: mark on January 29, 2006, 05:24:11 AM
Well,if you just want to try the regular timer event,there's a topic in here that may be able to help you.
http://www.crankeye.com/forums/viewtopic.php?t=5394
If you still have doubts,post what else you need.