1 |
timer++; |
2 |
if (shakeamount > 0) |
3 |
shakeamount--; |
4 |
var shakeamount2 = shakeamount - random(shakeamount * 2); |
5 |
y1 = ((obj_spamton_neo_enemy.y + obj_spamton_neo_enemy.party[vineid]) - 10) + obj_spamton_neo_enemy.partyoff[vineid]; |
6 |
if (type == 0) |
7 |
{ |
8 |
if (timer == 11) |
9 |
{ |
10 |
x3 = x1; |
11 |
x4 = x2; |
12 |
y3 = y1 - 130; |
13 |
y4 = y2; |
14 |
y2 = y1 - 130; |
15 |
} |
16 |
if (timer > 11) |
17 |
{ |
18 |
if (y4 < y3) |
19 |
y3 -= 4; |
20 |
if (y1 > y2) |
21 |
y2 += 4; |
22 |
} |
23 |
if (timer == 60) |
24 |
instance_destroy(); |
25 |
} |
26 |
if (type == 1) |
27 |
{ |
28 |
if (timer > 1 && timer < 17) |
29 |
{ |
30 |
x3 += lengthdir_x(anglecutspeed, lineangle + 23); |
31 |
y3 += lengthdir_y(anglecutspeed, lineangle + 23); |
32 |
x2 += lengthdir_x(anglecutspeed, lineangle - 157); |
33 |
y2 += lengthdir_y(anglecutspeed, lineangle - 157); |
34 |
anglecutspeed -= 0.2; |
35 |
} |
36 |
if (timer > 11) |
37 |
alpha -= 0.1; |
38 |
if (timer > 21) |
39 |
{ |
40 |
} |
41 |
if (timer == 60 || alpha < 0.1) |
42 |
instance_destroy(); |
43 |
} |
44 |
if (abs(y1 - y2) < 16 || y2 > y1) |
45 |
bottomlinevisible = 0; |
46 |
draw_set_alpha(alpha); |
47 |
draw_set_color(c_orange); |
48 |
if ((timer >= 11 && type == 0 && hide == 0) || (type == 1 && hide == 0)) |
49 |
draw_line_width(x3, y3, x4, y4, 2); |
50 |
if (bottomlinevisible == 1 && hide == 0) |
51 |
draw_line_width(x1 + shakeamount2, y1 + shakeamount2, x2 + shakeamount2, y2 + shakeamount2, 2); |
52 |
if (timer < 11 && hide == 0) |
53 |
{ |
54 |
draw_set_color(c_white); |
55 |
draw_set_alpha(11 - (timer / 10)); |
56 |
draw_line_width(x1, y1, x2, y2, 2); |
57 |
draw_set_alpha(1); |
58 |
} |
59 |
draw_set_alpha(1); |