Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_board_marker

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

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
()
2
{
3
    var _thismarker = instance_create(argument0, argument1, obj_board_marker);
4
    _thismarker.sprite_index = argument2;
5
    _thismarker.image_xscale = 2;
6
    _thismarker.image_yscale = 2;
7
    if (argument_count >= 4)
8
        _thismarker.image_speed = argument3;
9
    if (argument_count >= 5)
10
    {
11
        if (argument4 != -1)
12
            _thismarker.depth = argument4;
13
    }
14
    if (argument_count >= 6)
15
        _thismarker.image_xscale = argument5;
16
    if (argument_count >= 6)
17
        _thismarker.image_yscale = argument5;
18
    if (argument_count >= 7)
19
        _thismarker.animateonce = argument6;
20
    return _thismarker;
21
}