Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_stickto_Step_2

(view raw script w/o annotations or w/e)
1
if (i_ex(stickingobj) && i_ex(stucktoobj))
2
{
3
    stickingobj.depth = stucktoobj.depth + relativedepth;
4
    stickingobj.x = stucktoobj.x + relx;
5
    stickingobj.y = stucktoobj.y + rely;
6
}
7
else
8
{
9
    instance_destroy();
10
}