im creating this power up thing where if my player comes in contact with it he'll speed up for a certain amount of time.
and...I believe alarms is something I will need in this and Im still having trouble learning how to use alarms even after watching some tutorials...
this is what I have right now.
and in alarm 0 event:
speedup = false.
im pretty sure this is very inefficient or jus straight up dumb but I don really understand alarms lol.
all the tutorials ive seen so far show that the alarm is created and starts counting down in the create event.
but if it counts down in the create event then it wont actually work in this case since I want it to start counting down when I touch it.
and...I believe alarms is something I will need in this and Im still having trouble learning how to use alarms even after watching some tutorials...
this is what I have right now.
GML:
if(place_meeting(x,y,player))
{
alarm[0] = room_speed
speedup = true
}
if speedup = true
{
player.hsp = player.hsp*2
}
speedup = false.
im pretty sure this is very inefficient or jus straight up dumb but I don really understand alarms lol.
all the tutorials ive seen so far show that the alarm is created and starts counting down in the create event.
but if it counts down in the create event then it wont actually work in this case since I want it to start counting down when I touch it.