Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_pc2_sworddoor_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (place_meeting(x, y, obj_board_swordhitbox))
4
    {
5
        instance_create(x + 16, y + 16, obj_board_enemydefeatsplash);
6
        
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_stairs, 0, depth, 2);
7
        setxy(room_width, room_height);
8
    }
9
}