1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (spawner == noone || (!instance_exists(spawner))) |
4 |
return; |
5 |
if (frog_jump == true) |
6 |
{ |
7 |
var frog_sound = audio_play_sound(snd_tinyfroggit, 1, 0) |
8 |
audio_sound_pitch(frog_sound, ((irandom_range(8, 12)) / 10)) |
9 |
sprite_index = spr_bigfrog_jumpinbro |
10 |
vsp = -5 |
11 |
frog_jump = false |
12 |
} |
13 |
vsp += grav |
14 |
if ((y + vsp) >= spawner.bbox_top) |
15 |
{ |
16 |
while ((y + sign(vsp)) < spawner.bbox_top) |
17 |
y += sign(vsp) |
18 |
if (sprite_index == spr_bigfrog_jumpinbro) |
19 |
sprite_index = spr_bigfrog_chillinbro |
20 |
vsp = 0 |
21 |
} |
22 |
y += vsp |
23 |
if place_meeting(x, y, obj_heart_battle_fighting_parent) |
24 |
{ |
25 |
obj_macro_frog_counter.frog_scale = 1.5 |
26 |
obj_macro_frog_counter.frog_count-- |
27 |
audio_play_sound(snd_heal, 1, 0) |
28 |
instance_destroy() |
29 |
} |