Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_snowdin_13_ball_Step_0

(view raw script w/o annotations or w/e)
1
if (active == 1)
2
{
3
    if (x < 160)
4
    {
5
        x += ballRollSpeed;
6
    }
7
    else
8
    {
9
        alarm[0] = 15;
10
        active = 0;
11
    }
12
    if (x > 140 && ballRollSpeed > 0.5)
13
        ballRollSpeed -= 0.1;
14
}
15
if (active == 3)
16
{
17
    if (x < 260)
18
    {
19
        x += ballRollSpeed;
20
    }
21
    else
22
    {
23
        alarm[0] = 15;
24
        active = 4;
25
    }
26
    ballRollSpeed += 0.1;
27
}