help with making timer.

Hello. I have problem with timer. My player in game is moving by variables. speedW, speedA… when you will press w player will go up. it will add some points to speedw. And timer will slowdown speed. I dont know why my timers dont work. Here is:

(SORRY FOR MY ENGLISH IF I HAVE SOME MISTAKES.)

CODE:

CONDITION: ACTION:
The timer “slowingW” is greather then 1 second Do -5 to global variable speedW
Reset the timer “slowingW”

i tryed to add unpause if variable speedW is greather than 0 and then if “slowingW” is greather then 1 sec, pause timer “slowingW” . ANYTHING DONT WORK. thanks for every help.
Dei-bit.

Try this,

Condition: At the beginning of scene
Action: Pause scene timer “slowingW”
Condition: When W key is pressed
Action: unpause scene timer “slowingW”
Condition: scene timer “slowingW” is greater than 1 sec
Action: Do -5 to global variable speedW , Reset the scene timer “slowingW” , Pause scene timer “slowingW”

Hope this helps :slight_smile:

Not working. I dont know. I will try and check if i copyed your code right.

IT WORK! I DID AN MISTAKE. THANKS.