Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_lancerget_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    var count = random(99);
4
    with (obj_board_trigger)
5
    {
6
        count++;
7
        var lan = 
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; }
(x, y, spr_board_lancer_spin, 0);
8
        lan.image_index = count;
9
        with (lan)
10
            
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
11
        instance_destroy();
12
    }
13
}