Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_wallbullet_Other_10

(view raw script w/o annotations or w/e)
1
if (y < (cameray() + 110))
2
    exit;
3
if (y > (cameray() + 233))
4
    exit;
5
if (image_alpha < 0.5)
6
    exit;
7
if (destroyable == 1 && active == 1)
8
{
9
    if (hitshot.big == 0)
10
    {
11
        with (hitshot)
12
            event_user(0);
13
    }
14
    snd_play_pitch(snd_bomb, 1.1 + random(0.2));
15
    
scr_afterimage_cut
scr_afterimage_cut

function
scr_afterimage_cut()
{ afterimage = instance_create(x, y, obj_afterimage_cut); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; with (afterimage) event_user(0); return afterimage; }
();
16
    anim = instance_create(x, y, obj_yshot_anim);
17
    anim.image_xscale = image_xscale;
18
    anim.image_yscale = image_yscale;
19
    with (anim)
20
        sprite_index = spr_yheart_shot_hit3;
21
    instance_destroy();
22
}
23
else if (destroyable == 0 && active == 1)
24
{
25
    with (hitshot)
26
        event_user(0);
27
    snd_play(snd_bell);
28
}