S
Specter
Guest
I want to get my game to restart after the player is destroyed with an explosion, but I'm having trouble making it work. Here is what I did. I'm using a Controller object to test if the player exists, I've used in the step event- if instance_number(obj_Player)=0 {alarm[1]=60}. In the alarm[1] game_restart, but the game just keeps running after the player is destroyed. If I put the game_restart in the player object in the collision event after it is destroyed then it restarts but you don't see the explosion. I need the delay to see the explosion, but not sure how to do it since the sleep command is no longer valid. I see from another post that it is probably because I set the alarm in the step event so it always stays at 60 but if not in the step then what?
Last edited by a moderator: