Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_oflash

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

function scr_oflash() { _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; if (global.chapter == 2 && object_index == obj_mauswheel_enemy) _oflash.sprite_index = spr_mauswheel_idle; else _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
()
2
{
3
    _oflash = instance_create(x, y, obj_oflash);
4
    _oflash.image_xscale = image_xscale;
5
    _oflash.image_speed = 0;
6
    _oflash.image_index = image_index;
7
    _oflash.image_yscale = image_yscale;
8
    if (global.chapter == 2 && object_index == obj_mauswheel_enemy)
9
        _oflash.sprite_index = spr_mauswheel_idle;
10
    else
11
        _oflash.sprite_index = sprite_index;
12
    _oflash.depth = depth - 1;
13
    _oflash.target = id;
14
    return _oflash;
15
}