Undertale script viewer

← back to main script listing

gml_Object_obj_movedoge_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
    with (mypart3)
8
        instance_destroy();
9
    with (mypart4)
10
        instance_destroy();
11
    dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y, obj_dmgwriter);
12
    global.damage = takedamage;
13
    with (dmgwriter)
14
        dmg = global.damage;
15
    image_index = 1;
16
    snd_play(snd_damage);
17
    alarm[8] = 11;
18
}
19
x += shudder;
20
if (shudder < 0)
21
    shudder = -(shudder + 2);
22
else
23
    shudder = -shudder;
24
if (shudder == 0)
25
{
26
    global.hurtanim[myself] = 2;
27
    exit;
28
}
29
alarm[3] = 2;
gml_Object_obj_movedoge_Alarm_3.gml

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