1 |
if (active == 1) |
2 |
{ |
3 |
if (rotspeed > rotmin) |
4 |
rotspeed -= 0.2; |
5 |
if (rotspeed < rotmin) |
6 |
rotspeed += 0.2; |
7 |
for (i = 0; i < num; i += 1) |
8 |
{ |
9 |
if (instance_exists(spear[i])) |
10 |
{ |
11 |
hx = x + lengthdir_x(rr, curang + ((i / num) * 360)); |
12 |
hy = y + lengthdir_y(rr, curang + ((i / num) * 360)); |
13 |
spear[i].x = hx; |
14 |
spear[i].y = hy; |
15 |
with (spear[i]) |
16 |
image_angle = point_direction(x, y, parent.x, parent.y); |
17 |
} |
18 |
if (rr < 8) |
19 |
{ |
20 |
with (spear[i]) |
21 |
deactivate = 1; |
22 |
} |
23 |
} |
24 |
if (rr < 8) |
25 |
{ |
26 |
rr += 1; |
27 |
rotspeed *= 0.8; |
28 |
} |
29 |
if (rr < -20) |
30 |
instance_destroy(); |
31 |
rr -= 4; |
32 |
curang += rotspeed; |
33 |
} |
34 |
if (global.turntimer < 1) |
35 |
instance_destroy(); |