Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_photoblock_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    mysolid = instance_create(x, y, obj_board_solid);
4
    mysolid.sprite_index = sprite_index;
5
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(mysolid);
6
    init = 1;
7
}
8
if (updatedepth)
9
    
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();
}
();
10
if (con == 1)
11
{
12
    con = 2;
13
    snd_play(snd_board_bomb);
14
    safe_delete(mysolid);
15
    smoke = instance_create(x, y, obj_board_smokepuff);
16
    smoke.depth = depth + 5;
17
    updatedepth = false;
18
    gravity = -2;
19
    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 120);
20
}
21
if (con > 1 && y < 0)
22
    instance_destroy();
23
if (i_ex(mysolid))
24
{
25
    mysolid.x = x;
26
    mysolid.y = y;
27
}