Undertale script viewer

← back to main script listing

gml_Object_obj_greatdogbody_Step_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_greatdog))
2
{
3
    if (obj_greatdog.dogignore == 0)
4
    {
5
        image_xscale = 2;
6
        image_yscale = 2;
7
        x = xstart;
8
        y = ystart;
9
    }
10
    if (obj_greatdog.dogignore == 1)
11
    {
12
        image_xscale = 3;
13
        image_yscale = 3;
14
        x = xstart - (0.2 * sprite_width);
15
        y = ystart + 30;
16
    }
17
    if (obj_greatdog.dogignore == 2)
18
    {
19
        image_xscale = 4;
20
        image_yscale = 4;
21
        x = xstart - (0.25 * sprite_width);
22
        y = ystart + 70;
23
    }
24
    if (obj_greatdog.dogignore == 3)
25
    {
26
        image_xscale = 5;
27
        image_yscale = 5;
28
        x = xstart - ((1/3) * sprite_width);
29
        y = obj_uborder.y - 85;
30
    }
31
}
32
if (global.debug == 1)
33
{
34
    if (keyboard_check(vk_space))
35
        obj_greatdog.dogignore = 3;
36
}