Undertale script viewer

← back to main script listing

gml_Object_obj_amalgam_rocketdog_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
{
3
    nowx = x;
4
    nowy = y;
5
    image_speed = 0.25;
6
    if (image_index >= 3)
7
    {
8
        image_speed = 0;
9
        con = 2;
10
        alarm[4] = 10;
11
    }
12
}
13
if (con == 3)
14
{
15
    con = 4;
16
    alarm[4] = 15;
17
}
18
if (con == 4 || shake == 1)
19
{
20
    x = (nowx + random(3)) - random(3);
21
    y = (nowy + random(3)) - random(3);
22
}
23
if (con == 5)
24
{
25
    alarm[5] = 1;
gml_Object_obj_amalgam_rocketdog_Alarm_5.gml

move_towards_point(obj_heart.x - 25, obj_heart.y - 20, 7 + random(3)); alarm[5] = 20 + random(10); alarm[6] = 14 + random(5); shake = 0;
26
    sprite_index = spr_nofacedog_rocket;
27
    image_speed = 0.334;
28
    con = 6;
29
}
30
betty = distance_to_point(obj_heart.x + 8, obj_heart.y + 8);
31
if (global.turntimer < 1)
32
{
33
    global.turntimer = -1;
34
    global.mnfight = 3;
35
    instance_destroy();
36
}