Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_puzzlecloset_1_bush_Step_0

(view raw script w/o annotations or w/e)
1
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();
}
();
2
if (place_meeting(x, y, obj_board_swordhitbox))
3
{
4
    instance_create(x + 16, y + 16, obj_board_enemydefeatsplash);
5
    instance_destroy();
6
}