Is It Possible To Change A Timer While The Game Is Running?
Hi
Does anyone know how to change a timer while a game is running please? Setting the expression of the timer with a self or game attribute doesn't change it once the timer has initially been created.
I'm moving an item in a table down a row every 0.5 seconds, but I want it to move down quicker if the down cursor key is pressed, so changing the timer to 0.1 or 0.05 seconds etc. I have the down key changing the speed attribute.
It's currently:
Timer: Every game.Movement Speed Seconds
Move data down in table
I thought this below fix might have worked but the initials speed is faster than I want and it seems a bit sporadic in moving down.
Timer: Every 0.0 Seconds
Change Attribute: Time In Existence = self.Time % game.Movement Speed
Rule: If Time In Existence = 0
Move data down in table
Thanks in advance
Does anyone know how to change a timer while a game is running please? Setting the expression of the timer with a self or game attribute doesn't change it once the timer has initially been created.
I'm moving an item in a table down a row every 0.5 seconds, but I want it to move down quicker if the down cursor key is pressed, so changing the timer to 0.1 or 0.05 seconds etc. I have the down key changing the speed attribute.
It's currently:
Timer: Every game.Movement Speed Seconds
Move data down in table
I thought this below fix might have worked but the initials speed is faster than I want and it seems a bit sporadic in moving down.
Timer: Every 0.0 Seconds
Change Attribute: Time In Existence = self.Time % game.Movement Speed
Rule: If Time In Existence = 0
Move data down in table
Thanks in advance
Answers
If down cursor key is pressed
-- Timer Every 0.1
-- Move data
otherwise
-- Timer Every 0.5
-- Move data