1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (ds_map_find_value(event_data, "event_type") == "sprite event") |
4 |
{ |
5 |
switch ds_map_find_value(event_data, "message") |
6 |
{ |
7 |
case "spike_spawn": |
8 |
for (var i = 0; i < 10; i++) |
9 |
{ |
10 |
if (weakpoint_position == i) |
11 |
{ |
12 |
obj_flowey_battle_phase_2_weakpoint.x = spikes[i][0] |
13 |
obj_flowey_battle_phase_2_weakpoint.y = spikes[i][1] |
14 |
obj_flowey_battle_phase_2_weakpoint.image_angle = spikes[i][2] |
15 |
obj_flowey_battle_phase_2_weakpoint.image_speed = 1 |
16 |
} |
17 |
else |
18 |
{ |
19 |
with (instance_create_depth(spikes[i][0], spikes[i][1], (depth + 1), obj_flowey_battle_phase_2_weakpoint_spikes)) |
20 |
image_angle = other.spikes[i][2] |
21 |
} |
22 |
} |
23 |
break |
24 |
case "vine_pause": |
25 |
image_speed = 0 |
26 |
break |
27 |
} |
28 |
|
29 |
} |