Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sticky_example_Collision_obj_mainchara

(view raw script w/o annotations or w/e)
1
if (stuck == 0 && stuckbuffer < 0)
2
{
3
    scr_stickto
scr_stickto

function scr_stickto(arg0, arg1) { _stickto = instance_create(0, 0, obj_stickto); _stickto.stickingobj = id; _stickto.stucktoobj = arg0; _stickto.relativedepth = arg1; with (_stickto) event_user(0); }
(obj_mainchara, -20);
4
    stuck = 1;
5
}