Undertale script viewer

← back to main script listing

gml_Object_obj_snowdrake_Alarm_3

(view raw script w/o annotations or w/e)
1
if (image_index != 1)
2
{
3
    with (mypart1)
4
        instance_destroy();
5
    with (mypart2)
6
        instance_destroy();
7
    dmgwriter = instance_create(x + 20, y - 10, obj_dmgwriter);
8
    global.damage = takedamage;
9
    with (dmgwriter)
10
        dmg = global.damage;
11
    image_index = 1;
12
    snd_play(snd_damage);
13
    alarm[8] = 11;
14
}
15
if (sha == 0)
16
    sha = x;
17
x = sha + shudder;
18
if (shudder < 0)
19
    shudder = -(shudder + 1);
20
else
21
    shudder = -shudder;
22
if (shudder == 0)
23
{
24
    sha = 0;
25
    global.hurtanim[myself] = 2;
26
    exit;
27
}
28
alarm[3] = 2;
gml_Object_obj_snowdrake_Alarm_3.gml

if (image_index != 1) { with (mypart1) instance_destroy(); with (mypart2) instance_destroy(); dmgwriter = instance_create(x + 20, y - 10, obj_dmgwriter); global.damage = takedamage; with (dmgwriter) dmg = global.damage; image_index = 1; snd_play(snd_damage); alarm[8] = 11; } if (sha == 0) sha = x; x = sha + shudder; if (shudder < 0) shudder = -(shudder + 1); else shudder = -shudder; if (shudder == 0) { sha = 0; global.hurtanim[myself] = 2; exit; } alarm[3] = 2;