kbessaGui
Member
I made this code for when the player was on the platform at a certain time the platform would no longer exist, but it only ceases to exist if I stay on it I wanted to know how to continue the alarm even if the player is no longer on it
in obj that will be destroyed
on step event:
on alarm 0
a doubt
you don't need to explain but there is a thing that I didn't understand is the need to have the "!" on line
the main idea is to make an object that if the player is on top it will trigger an alarm and after a while it will destroy itself
in obj that will be destroyed
on step event:
GML:
if (!place_meeting (x, y-1, oPlayer_1))
{
alarm[0]=30
}
instance_destroy()
[a doubt
you don't need to explain but there is a thing that I didn't understand is the need to have the "!" on line
(!place_meeting
for it to work since in my logic it would not need it. I think it got confused herethe main idea is to make an object that if the player is on top it will trigger an alarm and after a while it will destroy itself