Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_tasqueViroChaser_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (instance_exists(obj_ow_virokun_mansion_east_1f_d))
4
    {
5
        if (obj_ow_virokun_mansion_east_1f_d.con == 3)
6
            con = 1;
7
    }
8
}
9
if (con == 1)
10
    con = 2;
11
if (con == 2)
12
{
13
    if (instance_exists(obj_ow_virokun_mansion_east_1f_d))
14
        move_towards_point(obj_ow_virokun_mansion_east_1f_d.x + (obj_ow_virokun_mansion_east_1f_d.sprite_width / 2), obj_ow_virokun_mansion_east_1f_d.y + obj_ow_virokun_mansion_east_1f_d.sprite_height, 12);
15
    else
16
        move_towards_point(room_width / 2, -128, 12);
17
}
18
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();