N
nicoltoons
Guest
Good evening,
Please I need help with this. I have gotten alarms to work in the past but I can't seem to get this one to work.
I am trying to create a count down timer that counts to zero and awards the player a life at the end then it counts down again and rewards the player another life at the end etc like candy crush
//Create event
global.secs = 1
global.mins = 5
alarm[0]=30
//Alarm
if global.life <3
{
global.secs-=1
if global.secs == -1
{
global.secs = 59
if global.mins >0
{
global.mins -=1
}
else
{
if global.mins == 0
{
global.life +=1
}
}
}
}
scr_Savegame()
alarm[0]= room_speed
Result : It gives the player a life once and just repeats the count down without awarding a life again.
Help help help!
Please I need help with this. I have gotten alarms to work in the past but I can't seem to get this one to work.
I am trying to create a count down timer that counts to zero and awards the player a life at the end then it counts down again and rewards the player another life at the end etc like candy crush
//Create event
global.secs = 1
global.mins = 5
alarm[0]=30
//Alarm
if global.life <3
{
global.secs-=1
if global.secs == -1
{
global.secs = 59
if global.mins >0
{
global.mins -=1
}
else
{
if global.mins == 0
{
global.life +=1
}
}
}
}
scr_Savegame()
alarm[0]= room_speed
Result : It gives the player a life once and just repeats the count down without awarding a life again.
Help help help!
Last edited by a moderator: