1 |
if (con == 1) |
2 |
{ |
3 |
nowx = x; |
4 |
nowy = y; |
5 |
image_speed = 0.25; |
6 |
if (image_index >= 7) |
7 |
{ |
8 |
image_speed = 0; |
9 |
con = 2; |
10 |
alarm[4] = 10; |
11 |
} |
12 |
} |
13 |
if (con == 3) |
14 |
{ |
15 |
con = 4; |
16 |
alarm[4] = 15; |
17 |
} |
18 |
if (con == 4) |
19 |
{ |
20 |
x = (nowx + random(3)) - random(3); |
21 |
y = (nowy + random(3)) - random(3); |
22 |
} |
23 |
if (con == 5) |
24 |
{ |
25 |
con = 6; |
26 |
vspeed = -6; |
27 |
alarm[5] = 15; |
28 |
alarm[6] = 5; |
29 |
} |
30 |
if (y < global.idealborder[2]) |
31 |
{ |
32 |
y += 6; |
33 |
if (vspeed < 0) |
34 |
vspeed = -vspeed; |
35 |
} |
36 |
if (y > ((global.idealborder[3] - sprite_height) + 5)) |
37 |
{ |
38 |
y -= 6; |
39 |
if (vspeed > 0) |
40 |
vspeed = -vspeed; |
41 |
} |
42 |
if (global.turntimer < 1) |
43 |
{ |
44 |
global.turntimer = -1; |
45 |
global.mnfight = 3; |
46 |
instance_destroy(); |
47 |
} |