Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_growtangle_Step_2

(view raw script w/o annotations or w/e)
1
if (global.turntimer < 1)
2
{
3
    instance_destroy();
4
    exit;
5
}
6
if (instance_exists(obj_heart))
7
{
8
    if (obj_heart.x < (x1 + 3))
9
        obj_heart.x = x1 + 3;
10
    if (obj_heart.x > (x2 - 3 - 15))
11
        obj_heart.x = x2 - 3 - 15;
12
    if (obj_heart.y < (y1 + 3))
13
        obj_heart.y = y1 + 3;
14
    if (obj_heart.y > (y2 - 3 - 15))
15
        obj_heart.y = y2 - 3 - 15;
16
}