if (boolFearon == true){
SetTimer(1, 40);
}
if (IsTimerExpired(1)){
Display("It works!");
}
So simple, right? Well...
I placed it under rep-execute-always
It didn't work.
I placed it in the room script.
I didn't work.
The bool works.
The timer didn't work.
I made a new game and tested out settimer there without the custom bool.
IT. DIDN'T. WORK!!!
What is going on? What is possessing my program to not set off the timer! The gamer isn't paused, it's not being blocked, what gives?
if (boolFearon == true){
boolFearon = false;
SetTimer(1, 40);
}
try this. Otherwise you restart the timer every gameloop.
Quote from: selmiak on Thu 14/03/2013 17:11:15
if (boolFearon == true){
boolFearon = false;
SetTimer(1, 40);
}
try this. Otherwise you restart the timer every gameloop.
Doesn't work. I thank you for pointing out my looping, but I tried to set the timer in other scripts, and it doesn't work at all.
of course this goes into rep-ex of the room. Did you put the check in rep-ex and somehere else set the boolFearon to true?
Oh! That did it. Thank you ever so much with my simple problem.