Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadow_mantle_cloud_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 (i_ex(obj_board_camera))
3
{
4
    if (obj_board_camera.con != 0)
5
        instance_destroy();
6
}
7
if (con == 0)
8
{
9
    if (visible == true)
10
        visible = false;
11
    else
12
        visible = true;
13
    timer++;
14
    if (timer == 12)
15
        con = 1;
16
}
17
if (con == 1)
18
{
19
    image_index += 0.25;
20
    if (image_index == 1)
21
    {
22
        snd_stop(snd_wing);
23
        snd_stop(snd_spearrise);
24
        snd_play_pitch(snd_spearrise, 1.2);
25
        if (type == 0)
26
        {
27
            var obj = 71;
28
            if (fatal == false)
29
                obj = 228;
30
            bullet = instance_create((x + 16) - 2 - 4, y + 16, obj);
31
            bullet.image_angle = 180;
32
            bullet.direction = 180;
33
            bullet.speed = 10;
34
            bullet = instance_create((x + 16) - 2 - 4, y + 16, obj);
35
            bullet.image_angle = 0;
36
            bullet.direction = 0;
37
            bullet.speed = 10;
38
            bullet = instance_create((x + 16) - 6, y + 16, obj);
39
            bullet.image_angle = 90;
40
            bullet.direction = 90;
41
            bullet.speed = 10;
42
            bullet = instance_create((x + 16) - 6, y + 16, obj);
43
            bullet.image_angle = 270;
44
            bullet.direction = 270;
45
            bullet.speed = 10;
46
        }
47
        else
48
        {
49
            instance_create(x, y, obj_board_enemy_bouncy);
50
        }
51
    }
52
    if (image_index >= 3)
53
        instance_destroy();
54
}