Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_bomb_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_board_camera))
2
{
3
    if (obj_board_camera.con != 0)
4
        instance_destroy();
5
}
6
if (con == 2)
7
{
8
    
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();
}
();
9
    timer++;
10
    if (timer > 10)
11
        image_index++;
12
    if (timer == 20)
13
    {
14
        cloud = instance_create(x + 6, y, obj_shadow_mantle_cloud);
15
        cloud.type = type;
16
        cloud.fatal = fatal;
17
        cloud.depth = depth - 10;
18
        snd_stop(snd_board_bomb);
19
        snd_play(snd_board_bomb);
20
        instance_destroy();
21
    }
22
}