1 | if live_call() |
2 | return global.live_result; |
3 | var battle_box = obj_dialogue_box_battle_transformation_any |
4 | switch scene |
5 | { |
6 | case -1: |
7 | break |
8 | case 0: |
9 | var y_target = battle_box.bbox_top + 30 |
10 | y = lerp(y, y_target, 0.15) |
11 | if (abs(y - y_target) < 0.1) |
12 | { |
13 | scene++ |
14 | y = y_target |
15 | } |
16 | break |
17 | case 1: |
18 | cutscene_wait(loop_duration) |
19 | break |
20 | case 2: |
21 | vspeed += 1 |
22 | if (y > (battle_box.bbox_bottom + 20)) |
23 | instance_destroy() |
24 | break |
25 | default: |
26 | |
27 | } |