Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_marker_Step_0

(view raw script w/o annotations or w/e)
1
if (autodepth == true)
2
    
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();
}
();
3
if (!variable_instance_exists(id, "camkill"))
4
    camkill = false;
5
if (camkill && i_ex(obj_board_camera))
6
{
7
    if (obj_board_camera.con != 0 || obj_board_camera.shift != "none")
8
        instance_destroy();
9
}