Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_cshot_weakpoint_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (deathtimer > 0)
2
    exit;
3
if (destroyable == 1)
4
    flash = 1;
5
if (other.big == 0)
6
{
7
    hp--;
8
    with (other)
9
        event_user(0);
10
}
11
if (other.big || hp <= 0)
12
{
13
    deathtimer = 4;
14
    barrier.speed = 0;
15
    barrier.angle_speed = 0;
16
    barrier.hitfreeze = 1;
17
    barrier.destroyable = 0;
18
    image_blend = c_white;
19
    barrier.image_blend = c_yellow;
20
    sprite_index = spr_sneo_c_weakpoint_hit;
21
}