Lately I have been having issues with implementing a sliding door mechanic I checked the code and it looked bulletproof but yet when put into practice it does not work.
in the Create_Event I added a variable "stop = false;." and a Alarm function that sets that sets the stop variable to true.
This is the Step_Event
In Practice the door just simply continues to move down without stopping, leaving me confused, in theory when the alarm sets the stop variable to true and the door should stop.
in the Create_Event I added a variable "stop = false;." and a Alarm function that sets that sets the stop variable to true.
This is the Step_Event
GML:
if stop = false{
y += 0.5
alarm[0] = 30;
}else if stop = true {
y += 0;
}