Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_turtles_Step_2

(view raw script w/o annotations or w/e)
1
if (global.plot == 141)
2
{
3
    if (global.interact == 0)
4
    {
5
        if (i_ex(gerson))
6
        {
7
            var targx = max(kris.bbox_right, susie.bbox_right, ralsei.bbox_right) + 20;
8
            if (gerson.bbox_left > targx)
9
            {
10
                with (gerson)
11
                    x = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(clamp(x, targx, x - 4));
12
                gerson.image_index += 0.16666666666666666;
13
            }
14
            else
15
            {
16
                gerson.image_index = 0;
17
            }
18
            with (gerson)
19
                
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
20
        }
21
    }
22
}