1 |
ystart += gravity; |
2 |
if (introtimer >= 0) |
3 |
{ |
4 |
introtimer++; |
5 |
x = lerp(xstart, 1112, introtimer / 10); |
6 |
y = lerp(ystart, 44, introtimer / 10); |
7 |
if (introtimer == 10) |
8 |
{ |
9 |
introtimer = -1; |
10 |
xstart = x; |
11 |
ystart = y; |
12 |
} |
13 |
exit; |
14 |
} |
15 |
if (outrotimer >= 0) |
16 |
{ |
17 |
outrotimer++; |
18 |
x = lerp(xstart, outrox, outrotimer / 10); |
19 |
y = lerp(ystart, outroy, outrotimer / 10); |
20 |
if (outrotimer == 10) |
21 |
{ |
22 |
instance_destroy(); |
23 |
with (obj_ch2_scene25) |
24 |
{ |
25 |
berdly_wire.visible = true; |
26 |
be_actor.visible = true; |
27 |
} |
28 |
} |
29 |
exit; |
30 |
} |
31 |
if (con == 0) |
32 |
{ |
33 |
siner += 0.4; |
34 |
y = ystart + (sin(siner / 6) * 3); |
35 |
} |
36 |
if (con == 1) |
37 |
{ |
38 |
timer++; |
39 |
y = lerp(ystart + (sin(siner / 6) * 3), ystart - 200, timer / 10); |
40 |
if (timer == 10) |
41 |
{ |
42 |
timer = 0; |
43 |
con = 99; |
44 |
} |
45 |
} |
46 |
if (con == 2) |
47 |
{ |
48 |
timer++; |
49 |
y = lerp(ystart - 200, ystart + (sin(siner / 6) * 3), timer / 10); |
50 |
if (timer == 10) |
51 |
{ |
52 |
timer = 0; |
53 |
con = 0; |
54 |
} |
55 |
} |
56 |
if (con == 3) |
57 |
{ |
58 |
timer++; |
59 |
x = lerp(xx, xstart, timer / 10); |
60 |
y = lerp(yy, ystart + (sin(siner / 6) * 3), timer / 10); |
61 |
if (timer == 10) |
62 |
{ |
63 |
timer = 0; |
64 |
con = 0; |
65 |
} |
66 |
} |
67 |
if (alphacon == 1) |
68 |
{ |
69 |
if (image_alpha > 0) |
70 |
image_alpha -= 0.05; |
71 |
if (global.turntimer < 3) |
72 |
alphacon = 2; |
73 |
} |
74 |
if (alphacon == 2) |
75 |
{ |
76 |
image_alpha += 0.05; |
77 |
if (image_alpha >= 1) |
78 |
alphacon = 0; |
79 |
} |