Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland2_draw_Step_0

(view raw script w/o annotations or w/e)
1
for (var current_tube = 0; current_tube < 2; current_tube += 1)
2
{
3
    lava_tube_x[current_tube] -= lava_tube_speed
4
    if (lava_tube_x[current_tube] < -90)
5
    {
6
        lava_tube_x[current_tube] = (lava_tube_x[abs(current_tube - 1)]) + lava_tube_sep
7
        switch irandom(5)
8
        {
9
            case 0:
10
                tube_sprite[current_tube] = 924
11
                break
12
            case 1:
13
                tube_sprite[current_tube] = 926
14
                break
15
            case 2:
16
                tube_sprite[current_tube] = 927
17
                break
18
            case 3:
19
                tube_sprite[current_tube] = 929
20
                break
21
            case 4:
22
                tube_sprite[current_tube] = 930
23
                break
24
        }
25
26
    }
27
}
28
__view_set((0 << 0), 0, 0)
29
__view_set((1 << 0), 0, 0)
30
__view_set((0 << 0), 0, ((__view_get((0 << 0), 0)) + (irandom_range(-1, 1))))
31
__view_set((1 << 0), 0, ((__view_get((1 << 0), 0)) + (irandom_range(-1, 1))))