Parallax Scrolling Test
JCFord
Member Posts: 785
Hi Just playing around with GS at the moment finding my feet, here is a quick test to see how GS could handle Parallax Scrolling that loops.
Thanks
Bluefusion
Thanks
Bluefusion
Comments
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Hmm, maybe I should take them and send them to the appstore as is.
;->
Sorry! Couldn't resist!
Thanks for all the positive comments, I have updated the file slightly:
http://gamesalad.com/game/play/33976
For those who wanted to know how I created it:
I have several layers as follows:
1. Car
2. Roadside
3. Stone Wall
4. Tree tops
5. Hills
6. Mountains
7. Sky
Each layer is set to scroll at a different speed to create the illusion of depth (parallax scrolling).
For each of the layers I have a 960 pixel wide file (2 screens wide) and I have merged the graphic so the left end matches up perfectly with the right side, so it can loop seamlessly.
I then cut each of the 960 pixel layers into two i.e. a left and a right part (480 pixels) so they are a screen width each.
They are butted up next to each other and given a GS move attribute so they scroll along together next to each other.
I then added a GS change attribute so once the first part scrolls off the screen out of view it jumps onto the end of the second part so it forms part of a seamless loop that next ends.
Thanks
Bluefusion