Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_building_breakable_Collision_obj_susiezilla_player_hitbox

(view raw script w/o annotations or w/e)
1
if (con == 3)
2
    exit;
3
if (con == 4)
4
    exit;
5
if (con == 1)
6
{
7
    con = 2;
8
    timer = 0;
9
    hp -= other.damage;
10
    image_index++;
11
    if (image_index > 2)
12
        image_index = 2;
13
    repeat (3)
14
        event_user(0);
15
    shakeobj = instance_create(x, y, obj_shakeobj_susiezilla);
16
    shakeobj.target = id;
17
    shakeobj.shakeamt = 12;
18
    shakeobj.shakereduct = 1;
19
    with (shakeobj)
20
        event_user(0);
21
    snd_stop(snd_damage);
22
    snd_play(snd_damage);
23
    with (other)
24
        event_user(0);
25
}
26
if (hp < 1)
27
{
28
    con = 3;
29
    repeat (3)
30
        event_user(0);
31
}