This project does that. It basically takes more sprites than just left to right scrolling, and another variable.
Offline
think of a grid... and learn exactly y scrollx works. You can learn more abou scroll x in massive detail in my scrolling tutorial.
Offline
fg123 wrote:
So you could make a variable called scrollX and scrollY and use the same script with the variables?
Pretty much, you just have to edit the scripts from regular left-to-right scrolling so that they read "Y" instead of X.
Offline
shadow_7283 wrote:
fg123 wrote:
So you could make a variable called scrollX and scrollY and use the same script with the variables?
Pretty much, you just have to edit the scripts from regular left-to-right scrolling so that they read "Y" instead of X.
...and the number you would use would be 360, the height of the screen, instead of 480, the width of the screen.
Offline
yea. Its usfull to make about 4 backgrounds to begin label them 1,2,3,4 and see how difrent values place them at diffrent areas. If you are still masivly stuck, my Tanks game has a good 2d scrolling engine.
Offline