Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_moveheart

(view raw script w/o annotations or w/e)
1
function 
scr_moveheart
scr_moveheart

function
scr_moveheart()
{ global.inv = 0; if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy)) return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart); else return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
()
2
{
3
    global.inv = 0;
4
    if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy))
5
        return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart);
6
    else
7
        return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
8
}