1 | myview = view_xview[0]; |
2 | gg = room_width - view_wview[0]; |
3 | if (myview < 0) |
4 | myview = 0; |
5 | if (view_xview[0] <= 0) |
6 | x = xhome; |
7 | if (view_xview[0] > 0) |
8 | x = xhome + floor(view_xview[0] - (view_xview[0] * scrollspeed)); |
9 | if (view_xview[0] >= gg) |
10 | x = xhome + floor(gg - (gg * scrollspeed)); |