| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (!instance_exists(obj_flowey_battle_gray_wheel)) |
| 4 |
{ |
| 5 |
instance_destroy(); |
| 6 |
exit; |
| 7 |
} |
| 8 |
image_angle = direction - 90 - 180; |
| 9 |
if (self_destroy == true) |
| 10 |
{ |
| 11 |
image_alpha -= 0.1; |
| 12 |
if (image_alpha <= 0) |
| 13 |
instance_destroy(); |
| 14 |
exit; |
| 15 |
} |
| 16 |
x = obj_flowey_battle_gray_wheel.x + lengthdir_x(distance, direction); |
| 17 |
y = obj_flowey_battle_gray_wheel.y + lengthdir_y(distance, direction); |
| 18 |
if (!grow_noloop) |
| 19 |
{ |
| 20 |
image_xscale += 0.1; |
| 21 |
image_yscale = image_xscale; |
| 22 |
if (image_xscale >= 1.2) |
| 23 |
{ |
| 24 |
image_xscale = 1.2; |
| 25 |
image_yscale = 1.2; |
| 26 |
grow_noloop = true; |
| 27 |
} |
| 28 |
} |
| 29 |
else |
| 30 |
{ |
| 31 |
image_xscale = lerp(image_xscale, 1, 0.2); |
| 32 |
image_yscale = image_xscale; |
| 33 |
} |
| 34 |
distance = 75 * image_xscale; |