Undertale script viewer

← back to main script listing

gml_Object_obj_spinbullet_friendscene_Collision_744

(view raw script w/o annotations or w/e)
1
if (global.invc <= 1 && f_timer == 0)
2
{
3
    snd_play(snd_hurt1);
4
    global.hshake = 2;
5
    global.shakespeed = 2;
6
    global.vshake = 2;
7
    instance_create(0, 0, obj_shaker);
8
    global.invc = 15;
9
    global.hp -= 7;
10
    if (global.hp <= 1)
11
        global.hp = 1;
12
}