1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (x < (0 - sprite_width) || x > (room_width + sprite_width)) |
4 |
instance_destroy() |
5 |
switch step |
6 |
{ |
7 |
case 0: |
8 |
if (image_alpha < 1) |
9 |
image_alpha += 0.02 |
10 |
else |
11 |
{ |
12 |
if (x < (room_width / 2)) |
13 |
rot_dir = 1 |
14 |
else |
15 |
rot_dir = -1 |
16 |
step++ |
17 |
} |
18 |
break |
19 |
case 1: |
20 |
if (x < -100 || x > (room_width + 100)) |
21 |
instance_destroy() |
22 |
image_speed = 2 |
23 |
image_angle += (5 * rot_dir) |
24 |
yspd += grav |
25 |
if place_meeting(x, (y + yspd), obj_flowey_battle_phase_2_clay_floor) |
26 |
{ |
27 |
while (!(place_meeting(x, (y + sign(yspd)), obj_flowey_battle_phase_2_clay_floor))) |
28 |
y += sign(yspd) |
29 |
yspd *= (-bounce_percent) |
30 |
xspd = 10 |
31 |
} |
32 |
x -= (xspd * rot_dir) |
33 |
y += yspd |
34 |
xspd *= 0.95 |
35 |
break |
36 |
} |