- Edited
Hi, i'm trying to create a function that pauses the timer when pushing space and starts the timer again when using the same button. I'm using if and elif operators and i can't get the timer to start after pausing. Is there a NOT operator or equivalent?
if (Input.is_action_pressed("key_space")) and timer.is_active():
timer.stop()
elif (Input.is_action_pressed("key_space")) and (timer.is_active() == false):
timer.start()