1 |
if live_call() |
2 |
return global.live_result; |
3 |
var box = obj_dialogue_box_battle_transformation_any |
4 |
switch scene |
5 |
{ |
6 |
case 0: |
7 |
if (obj_guardener_guy_a.active == false && obj_guardener_guy_a.is_on_target && obj_guardener_guy_b.is_on_target) |
8 |
{ |
9 |
var robot_b = instance_create(-40, box.y, obj_guardener_guy_b_noarms) |
10 |
var hands_b = instance_create_depth(robot_b.x, robot_b.y, (robot_b.depth - 1), obj_guardener_guy_throwing_hands) |
11 |
hands_b.robot_parent = robot_b |
12 |
var robot_a = instance_create((room_width + 40), box.y, obj_guardener_guy_a_noarms) |
13 |
var hands_a = instance_create_depth(robot_a.x, robot_a.y, (robot_a.depth - 1), obj_guardener_guy_throwing_hands) |
14 |
hands_a.robot_parent = robot_a |
15 |
hands_a.image_xscale = -1 |
16 |
hands_a.throw_delay += (hands_a.image_number - 0.5) |
17 |
cutscene_advance() |
18 |
} |
19 |
obj_guardener_guy_a.active = false |
20 |
obj_guardener_guy_b.active = false |
21 |
break |
22 |
case 1: |
23 |
var adv = 2 |
24 |
with (obj_guardener_guy_a_noarms) |
25 |
{ |
26 |
var x_target = box.bbox_right + 40 |
27 |
x = lerp(x, x_target, 0.2) |
28 |
y = lerp(y, box.y, 0.2) |
29 |
if (((abs(x + y)) - (abs(x_target + box.y))) < 1) |
30 |
adv -= 1 |
31 |
} |
32 |
with (obj_guardener_guy_b_noarms) |
33 |
{ |
34 |
x_target = box.bbox_left - 40 |
35 |
x = lerp(x, x_target, 0.2) |
36 |
y = lerp(y, box.y, 0.2) |
37 |
if (((abs(x + y)) - (abs(x_target + box.y))) < 1) |
38 |
adv -= 1 |
39 |
} |
40 |
if (adv <= 0) |
41 |
cutscene_advance() |
42 |
break |
43 |
case 2: |
44 |
break |
45 |
case 3: |
46 |
adv = 2 |
47 |
with (obj_guardener_guy_a_noarms) |
48 |
{ |
49 |
x_target = 720 |
50 |
x = lerp(x, x_target, 0.2) |
51 |
if (x > (x_target - 40)) |
52 |
adv -= 1 |
53 |
} |
54 |
with (obj_guardener_guy_b_noarms) |
55 |
{ |
56 |
x_target = -40 |
57 |
x = lerp(x, x_target, 0.2) |
58 |
if (x < (x_target + 20)) |
59 |
adv -= 1 |
60 |
} |
61 |
if (adv <= 0) |
62 |
cutscene_advance() |
63 |
break |
64 |
case 4: |
65 |
obj_guardener_guy_a.active = true |
66 |
obj_guardener_guy_b.active = true |
67 |
instance_destroy() |
68 |
break |
69 |
} |