Things required:
An object that has a create event with a code that says this:
CODE
second = 0
minute = 4
timer = 0
the minute = 4: this can be replaced with how many minutes you want
the timer to count down
Now, make a step event, and put this in code:
CODE
timer+=1
if timer = 30
{
timer=0
second-=1
}
if second = -1
{
second=59
minute-=1
}
Now, draw it with draw commands and there you go!
To make something happen when the timer reaches zero, put this in step in a
NEW code:
CODE
if minute = 0 and second = 0
{
room_restart()
}
The room restart can be replaced with whatever you want to happen.
Here are some screenshots:
Demo of Timer