Deltarune (Chapter 4) 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 == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy))) return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, 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 == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy)))
5
        return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart);
6
    else
7
        return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
8
}