Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_snowdin_13_shuffler_overworld_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if (move_right == true)
2
{
3
    switch x
4
    {
5
        case 130:
6
            destination = 160
7
            move_right = false
8
            break
9
        case 160:
10
            destination = 190
11
            move_right = false
12
            break
13
    }
14
15
    active = true
16
}
17
if (move_left == true)
18
{
19
    switch x
20
    {
21
        case 160:
22
            destination = 130
23
            move_left = false
24
            break
25
        case 190:
26
            destination = 160
27
            move_left = false
28
            break
29
    }
30
31
    active = true
32
}
33
if (active == true)
34
{
35
    if (x < destination)
36
        x += shuffle_speed
37
    else if (x > destination)
38
        x -= shuffle_speed
39
    else
40
        active = false
41
}