Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bluebird_shadow_Step_2

(view raw script w/o annotations or w/e)
1
if (parentid == -1 || !i_ex(parentid))
2
{
3
    instance_destroy();
4
    exit;
5
}
6
depth = 1000000 - (((y + 10) * 10) + ((sprite_height - sprite_yoffset) * 10));
7
x = round(parentid.x / 2) * 2;
8
y = round(parentid.y / 2) * 2;