Undertale script viewer

← back to main script listing

gml_Object_blt_potentiallyblue_Collision_744

(view raw script w/o annotations or w/e)
1
bb = 1;
2
if (blue == 1)
3
{
4
    if (obj_heart.xprevious != obj_heart.x || obj_heart.yprevious != obj_heart.y)
5
        bb = 1;
6
    else
7
        bb = 0;
8
}
9
if (global.invc < 1 && bb == 1)
10
{
11
    dmgamt = round(dmg - ((global.df + global.adef) / 5));
12
    if (dmgamt < 1)
13
        dmgamt = 1;
14
    global.hp -= dmgamt;
15
    snd_play(snd_hurt1);
16
    global.hshake = 2;
17
    global.shakespeed = 2;
18
    global.vshake = 2;
19
    instance_create(0, 0, obj_shaker);
20
    global.invc = global.inv;
21
}