1 |
if (x > x_destination) |
2 |
{ |
3 |
x -= move_speed |
4 |
if (x <= x_destination) |
5 |
{ |
6 |
x = x_destination |
7 |
launch_alarm_active = true |
8 |
alarm[0] = launch_alarmalarm[0]if (launch_count == launch_max)
{
instance_destroy()
return;
}
else if (launch_count == 0)
{
with (id_arm)
launch_state = 2
}
else
{
with (id_arm)
launch_state = 1
}
launch_count += 1
launch_alarm_active = false |
9 |
} |
10 |
for (i = 0; i < random_frames; i++) |
11 |
{ |
12 |
with (id_frame_middle[i]) |
13 |
event_user(0) |
14 |
} |
15 |
with (id_frame_center) |
16 |
event_user(0) |
17 |
} |
18 |
else if (launch_alarm_active == false && id_arm.launch_state == 0) |
19 |
{ |
20 |
launch_alarm_active = true |
21 |
alarm[0] = launch_alarmalarm[0]if (launch_count == launch_max)
{
instance_destroy()
return;
}
else if (launch_count == 0)
{
with (id_arm)
launch_state = 2
}
else
{
with (id_arm)
launch_state = 1
}
launch_count += 1
launch_alarm_active = false |
22 |
} |