N
nessabby1
Guest
score works fine by the object's steps. it adds up by 1 within 0 to 15 steps of the alarm[0] that is in the player object. however the when i want to pause, the score continues to add. how do i set it so that it pauses and resumes
in player object Create Event: i have the drag feature set alarm 0 to 15 steps
then in the Alarm0 Event: i have set alarm 0 to 15 steps again and then Set score to relative 1
and for its Draw Event:
{
draw_self()
draw_set_font(font0);
draw_set_color(c_white);
draw_text(512,64,score);
draw_text_colour(512, 64, string(score), c_lime, c_lime, c_green, c_green, 1);
}
i tried to add
if (globa.pause) {
keepIncreasingScore = false { alarm[0]++; Score ++; }
}else{
keepIncreasingScore = true { alarm[0] = 15; Score += 1; }
}
but obv that didnt do anything
in player object Create Event: i have the drag feature set alarm 0 to 15 steps
then in the Alarm0 Event: i have set alarm 0 to 15 steps again and then Set score to relative 1
and for its Draw Event:
{
draw_self()
draw_set_font(font0);
draw_set_color(c_white);
draw_text(512,64,score);
draw_text_colour(512, 64, string(score), c_lime, c_lime, c_green, c_green, 1);
}
i tried to add
if (globa.pause) {
keepIncreasingScore = false { alarm[0]++; Score ++; }
}else{
keepIncreasingScore = true { alarm[0] = 15; Score += 1; }
}
but obv that didnt do anything