GameMaker Delay in Event Code?

Fixer90

Member
Is there a way, other than using Alarms, to make a delay in an event? For example, if I had my own "scr_wait" function to do this, I could use it in the Create event of an object like so:
Code:
variable = 1;
scr_wait(2);
variable = 2;
scr_wait(4);
variable = 3;
What this would do is make it such that in the Create event when the object is created, variable would become 1, then 2 seconds later it would become 2, then 4 seconds later it would become 3.

I believe there was a topic about this already, but after searching for a while, I could not find it. If I recall correctly, the function's creator in the topic used some kind of coding loop to accomplish this.
 
Top