Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_beatbullet_simple_Destroy_0

(view raw script w/o annotations or w/e)
1
if (timer > 10)
2
{
3
    with (instance_create_depth(x, y, 0, obj_beatflash))
4
    {
5
        if (other.dir == "left")
6
            image_angle = 270;
7
        if (other.dir == "right")
8
            image_angle = 90;
9
        image_xscale = other.sprite_width;
10
        image_yscale = (1 / sprite_height) * 300;
11
    }
12
}
13
if (i_ex(glow))
14
{
15
    with (glow)
16
        instance_destroy();
17
}