Need help using domenius' "timers are for chumps"
I'm currently replacing all of the timers in my game with this:
http://forums.gamesalad.com/discussion/44707/timers-are-for-chumps-gs-optimization-tips/p1
It's going great except for a problem with "every" timers. I want my action to take place every X seconds AFTER an actor is pressed, the problem is that self.time is constantly running despite the actor not being pressed, this means that if I have mod1>self.time%5 and I wait 3 seconds after the game starts to press the actor then the action takes place 2 seconds after I pressed the actor rather than the desired 5 seconds.
So what I need is a way to make self.time not start counting until the actor is pressed or something like that, I have no idea how to do this...
http://forums.gamesalad.com/discussion/44707/timers-are-for-chumps-gs-optimization-tips/p1
It's going great except for a problem with "every" timers. I want my action to take place every X seconds AFTER an actor is pressed, the problem is that self.time is constantly running despite the actor not being pressed, this means that if I have mod1>self.time%5 and I wait 3 seconds after the game starts to press the actor then the action takes place 2 seconds after I pressed the actor rather than the desired 5 seconds.
So what I need is a way to make self.time not start counting until the actor is pressed or something like that, I have no idea how to do this...