SIMPLE TIMER...
Posts
Pages:
1
So, I'm attempting to make a timed event that, to be perfectly honest, is very simple but won't work for some reason. I got the timer to start and count down, but once it hits zero nothing happens. This is what I tried:
Timer1: Set(10 sec)
Timer1: Start
Conditional Branch> Timer1 less/equal 0/1 second> Event Switch (ON)
I'm not sure why, but the switch isn't coming on or something else is causing the event not to trigger.
EDIT: Working in rm2k3, forgot to mention that.
Timer1: Set(10 sec)
Timer1: Start
Conditional Branch> Timer1 less/equal 0/1 second> Event Switch (ON)
I'm not sure why, but the switch isn't coming on or something else is causing the event not to trigger.
EDIT: Working in rm2k3, forgot to mention that.
The thing is, in order for this event to trigger when the timer runs out, you have to make it a parallel process.
However, when you do that what happens? The timer is set to 10 seconds, then started, then a branch checks whether the timer has run out.
However, when you do that what happens? The timer is set to 10 seconds, then started, then a branch checks whether the timer has run out.
I've tried several different ways to get this to work. I get the timer to start, it counts down, and then the event doesn't trigger. I have the conditional branch set up as a separate event as a parallel process, and it still won't do anything. I am the stumped (and the dumb):/
Event 1: (on touch) Set timer 1 to 10 seconds
Call Common Event
Event 2: (Common Event) Start Timer 1
Event 3: (Parallel Process) Conditional Branch: Timer 1 less/equal 0 sec
Switch Operation: Switch on
Event 1: (on touch) Set timer 1 to 10 seconds
Call Common Event
Event 2: (Common Event) Start Timer 1
Event 3: (Parallel Process) Conditional Branch: Timer 1 less/equal 0 sec
Switch Operation: Switch on
Have the on touch event set timer 1 to 10 seconds, start it, and turn a switch on.
Have a parallel process common event that's triggered by the same switch you use in the on touch event. Do a conditional branch for the timer being less than 0 seconds, and inside that do the code for whatever happens after your timer expires and then turn the switch off.
Have a parallel process common event that's triggered by the same switch you use in the on touch event. Do a conditional branch for the timer being less than 0 seconds, and inside that do the code for whatever happens after your timer expires and then turn the switch off.
Ok, I did that and I can make it play a message at the end of the timer (which is more than I managed before), but for some reason when I replace the message command with a command to turn on a switch it doesn't work. I'm really considering just abandoning the event, cause it was a minor thing in the first place and I've spent hours trying to get it to work ;_;
Thanks for the help so far though, you've been very understanding of my idiocy lol
Thanks for the help so far though, you've been very understanding of my idiocy lol
Pages:
1











