Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_stickto_Other_10

(view raw script w/o annotations or w/e)
1
if (!i_ex(stickingobj))
2
    instance_destroy();
3
if (!i_ex(stucktoobj))
4
    instance_destroy();
5
relx = stickingobj.x - stucktoobj.x;
6
rely = stickingobj.y - stucktoobj.y;
7
init = 1;