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
You should look around the forum first, before asking a question like this!
I think someone recently posted a topic about this.
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!
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
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)
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
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.
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.