Undertale script viewer

← back to main script listing

gml_Object_object466_Step_0

(view raw script w/o annotations or w/e)
1
if (falling == 0)
2
    depth = 50000 - ((y * 10) + (sprite_height * 4));
3
if (vspeed > 0.1)
4
    depth = obj_mainchara.depth - 1;
5
if (vspeed < -0.1)
6
    depth = obj_mainchara.depth + 1;
7
if (falling > 0)
8
    depth = 1000;
9
xchange = abs(hspeed);
10
ychange = abs(vspeed);
11
tchange = xchange + ychange;
12
angle += ((tchange * 30) / (size * 10));
13
image_xscale = size;
14
image_yscale = size;
15
if (falling == 1)
16
{
17
    friction = -0.1;
18
    vspeed = 3;
19
    falling = 2;
20
}
21
if (falling == 2 && y > specialy)
22
{
23
    y = specialy;
24
    friction = 0.1;
25
    vspeed = 0;
26
    falling = 0;
27
}
28
if (t == 1 || t == 2)
29
{
30
    if (hspeed == 0 && vspeed == 0)
31
        t = 1;
32
    else
33
        t = 2;
34
}
35
golf = 0;
36
if (t == 1)
37
    size -= 0.01;
38
if (size < 0.2)
39
{
40
    instance_destroy();
41
    with (obj_rollsnowgen)
42
alarm[0]
43
}