Undertale script viewer

← back to main script listing

gml_Object_obj_undynea_actor_Step_0

(view raw script w/o annotations or w/e)
1
if (d == 0)
2
    scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
3
if (fun == 0)
4
{
5
    myinteract = 0;
6
    if (speed == 0)
7
    {
8
        image_index = 0;
9
        image_speed = 0;
10
    }
11
    if (speed > 0)
12
    {
13
        image_speed = 0.2;
14
        if (image_index == 1 || image_index == 3)
15
            snd_play(snd_undynestep);
16
    }
17
}
18
if (fun == 3)
19
{
20
    if (image_index == 1 || image_index == 3)
21
        snd_play(snd_undynestep);
22
}
23
if (global.flag[20 animation_index] == 5)
24
    sprite_index = spr_undynea_starku;
25
if (global.flag[20 animation_index] == 6)
26
    sprite_index = spr_undynea_starkl;