[Solved] How to add command for exampe: if player is collising with object, then wait 1 second, and then kill player

How to add command for exampe: if player is collising with object, then wait 1 second, and then kill player.

There’s no commands involved, but you can use timers in your event actions and conditions to do this:

http://wiki.compilgames.net/doku.php/gdevelop5/all-features/timers

I’d basically do something that has an object timer (on the player) get reset after collision
Then a separate event checks that the timer is greater than 1 second, then kill the player as the action.

Action 1:On collider reset a objects timer

Action 2: Timer is greater then 1 second: stop timer and kill enemy

Yes it works, Thx for help.

1 Like