Undertale script viewer

← back to main script listing

gml_Object_blt_loopbulletgrow_Collision_744

(view raw script w/o annotations or w/e)
1
hit = 1;
2
if (blue == 1)
3
{
4
    if (scr_blueat
scr_blueat

if (abs(obj_heart.xprevious - obj_heart.x) > 0.01 || abs(obj_heart.yprevious - obj_heart.y) > 0.01) return 1; else return 0;
() == 0)
5
        hit = 0;
6
}
7
if (global.invc < 1 && hit == 1)
8
{
9
    dmgamt = round(dmg - ((global.df + global.adef) / 5));
10
    dmgamt -= 1;
11
    if (dmgamt < 1)
12
        dmgamt = 1;
13
    global.hp -= dmgamt;
14
    snd_play(snd_hurt1);
15
    global.hshake = 2;
16
    global.shakespeed = 2;
17
    global.vshake = 2;
18
    instance_create(0, 0, obj_shaker);
19
    instance_destroy();
20
    global.invc = global.inv;
21
}