1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (image_alpha < 0.99) |
4 |
{ |
5 |
image_alpha = lerp(image_alpha, 1, 0.2) |
6 |
return; |
7 |
} |
8 |
else |
9 |
image_alpha = 1 |
10 |
switch scene |
11 |
{ |
12 |
case 1: |
13 |
speed = lerp(speed, -3, 0.25) |
14 |
if (speed < -2.9) |
15 |
{ |
16 |
speed = -3 |
17 |
scene++ |
18 |
} |
19 |
break |
20 |
case 2: |
21 |
speed = lerp(speed, 0, 0.25) |
22 |
if (speed > -0.1) |
23 |
{ |
24 |
speed = 0 |
25 |
scene++ |
26 |
} |
27 |
break |
28 |
case 3: |
29 |
break |
30 |
case 4: |
31 |
speed = lerp(speed, 0.5, 0.01) |
32 |
if (speed > 0.74) |
33 |
speed = 0.75 |
34 |
break |
35 |
} |
36 |
|
37 |
if (point_distance(x, y, obj_pl.x, obj_pl.y) < 10) |
38 |
{ |
39 |
with (obj_hotland_roof_flowey_pellets) |
40 |
instance_destroy() |
41 |
} |