| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
var box = 3154; |
| 4 |
switch (scene) |
| 5 |
{ |
| 6 |
case 0: |
| 7 |
var xx = choose(box.bbox_left + 40, box.bbox_right - 40); |
| 8 |
var yy = choose(box.bbox_top + 40, box.bbox_bottom - 40); |
| 9 |
if (place_free(xx, yy)) |
| 10 |
{ |
| 11 |
gear_current = instance_create_depth(xx, yy, obj_heart_battle_fighting_parent.depth - 10, obj_battle_enemy_attack_guardener_launcher_destroyable_fadein); |
| 12 |
cutscene_advance(); |
| 13 |
} |
| 14 |
break; |
| 15 |
case 1: |
| 16 |
cutscene_wait(0.25); |
| 17 |
break; |
| 18 |
case 2: |
| 19 |
var yy, launch_dir_new, dir_new; |
| 20 |
if (gear_current.y < box.y) |
| 21 |
{ |
| 22 |
launch_dir_new = "up"; |
| 23 |
dir_new = 180; |
| 24 |
yy = box.bbox_bottom + 5; |
| 25 |
} |
| 26 |
else |
| 27 |
{ |
| 28 |
launch_dir_new = "down"; |
| 29 |
dir_new = 0; |
| 30 |
yy = box.bbox_top - 5; |
| 31 |
} |
| 32 |
var xx = gear_current.x; |
| 33 |
var arm = instance_create_depth(xx, yy, obj_heart_battle_fighting_parent.depth - 1, obj_battle_enemy_attack_guardener_arm); |
| 34 |
arm.launch_dir = launch_dir_new; |
| 35 |
arm.image_angle = dir_new; |
| 36 |
arm.arm_return = 10; |
| 37 |
cutscene_advance(); |
| 38 |
break; |
| 39 |
case 3: |
| 40 |
if (cutscene_wait(2)) |
| 41 |
{ |
| 42 |
attack_count -= 1; |
| 43 |
if (attack_count > 0) |
| 44 |
cutscene_advance(0); |
| 45 |
else |
| 46 |
instance_destroy(); |
| 47 |
} |
| 48 |
break; |
| 49 |
} |