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_get((0 << 0), 0) |
11 |
if (xxx > (room_width - 640)) |
12 |
xxx = room_width - 640 |
13 |
if (xxx >= 0) |
14 |
__background_set((3 << 0), i, floor(xxx - xxx * scrollspeed[i])) |
15 |
gg = room_width - 640 |
16 |
if (xxx >= (room_width - 640)) |
17 |
__background_set((3 << 0), i, (c_black + (floor(gg - gg * scrollspeed[i])))) |
18 |
} |