Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_bigfrog_log_frog_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var battle_box = 3154;
4
if (spawner_log != -4 && 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_interval;
gml_Object_obj_bigfrog_log_frog_Alarm_0.gml

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();