Undertale script viewer

← back to main script listing

gml_Object_obj_sleepdog_Step_0

(view raw script w/o annotations or w/e)
1
if (obj_heart.x != obj_heart.xprevious || obj_heart.y != obj_heart.yprevious)
2
    hmove += 1;
3
if (hmove > 7)
4
{
5
    hmove = -99999;
6
    sprite_index = spr_wakedog;
7
    image_speed = 0;
8
    image_index = 0;
9
    alarm[2] = 2;
gml_Object_obj_sleepdog_Alarm_2.gml

image_index = 1; instance_create(x + 20, y + 8, blt_barkbullet); alarm[3] = 8; alarm[4] = 20; alarm[2] = 40;
10
}
11
if (global.turntimer < 1)
12
{
13
    global.turntimer = -1;
14
    global.mnfight = 3;
15
    instance_destroy();
16
}