Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_macro_choir_frog_orange_Step_0

(view raw script w/o annotations or w/e)
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