Undertale script viewer

← back to main script listing

gml_Object_obj_backgrounder_lastruins_Other_10

(view raw script w/o annotations or w/e)
1
scrollspeed[0] = 0.1;
2
scrollspeed[1] = 0.3;
3
scrollspeed[2] = 0.5;
4
scrollspeed[3] = 0.6;
5
scrollspeed[4] = 0.7;
6
scrollspeed[5] = 0.8;
7
scrollspeed[6] = 0.9;
8
for (i = 0; i < 7; i += 1)
9
{
10
    xxx = view_xview[0];
11
    if (xxx > (room_width - 320))
12
        xxx = room_width - 320;
13
    if (xxx >= 0)
14
        background_x[i] = floor(xxx - (xxx * scrollspeed[i]));
15
    gg = room_width - 320;
16
    if (xxx >= (room_width - 320))
17
        background_x[i] = 0 + floor(gg - (gg * scrollspeed[i]));
18
}