Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_cshot_weakpoint_Step_0

(view raw script w/o annotations or w/e)
1
if (x >= (room_width + 100) || x <= -100 || y >= (room_height + 100) || y <= -100)
2
    instance_destroy();
3
x = barrier.x;
4
y = barrier.y;
5
image_angle += angle_speed;
6
if (deathtimer > 0)
7
{
8
    deathtimer--;
9
    if (deathtimer == 0)
10
    {
11
        anim = instance_create(x, y, obj_yshot_anim);
12
        anim.image_xscale = 3;
13
        anim.image_yscale = 3;
14
        with (anim)
15
            sprite_index = spr_yheart_shot_hit3;
16
        instance_destroy(barrier);
17
        instance_destroy();
18
    }
19
}