Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_toriel_intro_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if (x > x_max)
2
    x -= x_speed
3
if (x < x_max)
4
    x = x_max
5
if (x == x_max && instance_exists(obj_froggit_intro_body_yellow))
6
{
7
    instance_create(obj_froggit_intro_body_yellow.x, obj_froggit_intro_body_yellow.y, obj_froggit_intro_scared_yellow)
8
    with (obj_froggit_intro_head_yellow)
9
        instance_destroy()
10
    with (obj_froggit_intro_body_yellow)
11
        instance_destroy()
12
}