| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (sin_deg < 180) |
| 4 |
sin_deg += sin_inc; |
| 5 |
else |
| 6 |
instance_destroy(); |
| 7 |
var sin_value = sin(degtorad(sin_deg)); |
| 8 |
switch (scene) |
| 9 |
{ |
| 10 |
case 0: |
| 11 |
if (sin_deg > 90) |
| 12 |
{ |
| 13 |
var fireball = instance_create_depth(x, y, -100, obj_flowey_battle_gray_fireball); |
| 14 |
fireball.direction = direction; |
| 15 |
fireball.speed = 4; |
| 16 |
sin_inc = 2; |
| 17 |
scene++; |
| 18 |
} |
| 19 |
break; |
| 20 |
} |
| 21 |
if (scene == 0) |
| 22 |
image_index = sin_value * 30; |
| 23 |
else |
| 24 |
image_index = 30 + (19 * (1 - sin_value)); |
| 25 |
x = xstart + lengthdir_x(sin_value * 40, image_angle); |
| 26 |
y = ystart + lengthdir_y(sin_value * 40, image_angle); |