J
jaigantor
Guest
hey so this might be a bit big (pulling code from a few objects) but I'm having an issue where the timer I have set to start after the player death doesn't work here's the code:
in the object o_timer
create:
global.timer = 3;
if instance_exists(o_player){
alarm[0] = 0;
}else{
alarm[0] = 60;
}
in alarm 0:
global.timer --;
when an enemy collides with a player the play is destroyed and in the o_player destroy event is this code:
if global.timer == 0{
room_goto(Death);
}
i'm not sure why this won't work, any help appreciated.
in the object o_timer
create:
global.timer = 3;
if instance_exists(o_player){
alarm[0] = 0;
}else{
alarm[0] = 60;
}
in alarm 0:
global.timer --;
when an enemy collides with a player the play is destroyed and in the o_player destroy event is this code:
if global.timer == 0{
room_goto(Death);
}
i'm not sure why this won't work, any help appreciated.