Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_hiddenheart_Step_2

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_heart))
2
{
3
    x = obj_heart.x;
4
    y = obj_heart.y;
5
    image_index = obj_heart.image_index;
6
}
7
else
8
{
9
    instance_destroy();
10
}