All lines in Gamemaker are processed sequentially as fast as your processor can handle them. There is no "wait" command as such, so you need to manually set up any waiting by either using a variable or one of the 12 alarms each object has.
Setting an alarm allows something to happen after a period of time. You set the alarm with something like
alarm[0] = 60 and then create an alarm event, and add your code that you want to run in that event. The alarm will countdown and that code will run.
The other method is you can set up a variable to do something after a certain amount of time.
eg.
CREATE event - Initialise the variable
You then set myalarm to some value at some point, and have this in the step event of the object.
STEP - check if the alarm should run
Code:
//Step event
if (myalarm > 0) {
myalarm -= 1;
if (myalarm <= 0) {
// code you want to run
}
}
You can even write the step event shorter like this, which uses the ! not command, and -- to take one off myalarm each pass.
Code:
if (myalarm and !--myalarm ) {
// code you want to run
}