Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_parallax_Step_0

(view raw script w/o annotations or w/e)
1
layer_scroll_speed[0] = 0.1
2
layer_scroll_speed[1] = 0.2
3
layer_scroll_speed[2] = 0.3
4
layer_scroll_speed[3] = 0.4
5
layer_scroll_speed[4] = 0.7
6
layer_scroll_speed[5] = 3
7
for (var i = 0; i < 6; i++)
8
    __background_set((3 << 0), i, ((__background_get((3 << 0), i)) - layer_scroll_speed[i]))
9
if (bg_image_index < 5)
10
    bg_image_index += 0.1
11
else
12
    bg_image_index = 1
13
__background_set((2 << 0), 1, asset_get_index("hotland_background_" + string(floor(bg_image_index))))