| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
var xx = obj_heart_battle_fighting_parent.x; |
| 4 |
var yy = obj_heart_battle_fighting_parent.y; |
| 5 |
switch (scene) |
| 6 |
{ |
| 7 |
case 0: |
| 8 |
var dir = random_range(0, 180); |
| 9 |
bul = instance_create_depth(xx + lengthdir_x(100, dir), yy + lengthdir_y(100, dir), -100, obj_flowey_battle_phase_2_gray_pellet); |
| 10 |
bul.direction = point_direction(bul.x, bul.y, xx, yy); |
| 11 |
bul.speed = 0; |
| 12 |
scene++; |
| 13 |
break; |
| 14 |
case 1: |
| 15 |
cutscene_wait(0.5); |
| 16 |
break; |
| 17 |
case 2: |
| 18 |
audio_play_sound(snd_undertale_swoosh, 1, 0); |
| 19 |
bul.speed = 12; |
| 20 |
bul.alarm[0] = 50; |
| 21 |
scene++; |
| 22 |
break; |
| 23 |
case 3: |
| 24 |
pellet_count--; |
| 25 |
if (pellet_count > 0) |
| 26 |
scene = 0; |
| 27 |
else |
| 28 |
cutscene_wait(1.5); |
| 29 |
break; |
| 30 |
case 4: |
| 31 |
instance_destroy(); |
| 32 |
break; |
| 33 |
} |