1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
if (spawner_log != noone && instance_exists(spawner_log)) |
5 |
x = spawner_log.x + x_offset |
6 |
if (image_index == 2 && (!is_jumping)) |
7 |
{ |
8 |
is_jumping = true |
9 |
audio_play_sound(snd_playerjump, 1, 0) |
10 |
gravity = 0.4 |
11 |
vspeed = -7 |
12 |
} |
13 |
if (is_jumping == true) |
14 |
{ |
15 |
if (vspeed > 5) |
16 |
vspeed = 5 |
17 |
if (y >= ystart && vspeed > 0) |
18 |
{ |
19 |
y = ystart |
20 |
gravity = 0 |
21 |
vspeed = 0 |
22 |
image_index = 0 |
23 |
image_speed = 0 |
24 |
alarm[0] = jump_intervalalarm[0]if live_call()
return global.live_result;
image_speed = 3 |
25 |
is_jumping = false |
26 |
} |
27 |
} |
28 |
if (x > battle_box.bbox_right) |
29 |
instance_destroy() |