Scrolling ("endless") Background
iPhoneDevForMe
Member Posts: 362
I have posted a demo showing how to create a "endless" scrolling background. This is the exact same method as found on RH's demo, only I have adjusted it so that it is the iPhone screen size.
When you preview it in GameSalad, it works exactly as it should; however, when you preview on a device, it stops working.
http://gamesalad.com/game/play/60407
Anyone care to take a look and test if this is a problem on your device as well? Thanks!
-Kyle
When you preview it in GameSalad, it works exactly as it should; however, when you preview on a device, it stops working.
http://gamesalad.com/game/play/60407
Anyone care to take a look and test if this is a problem on your device as well? Thanks!
-Kyle
Comments
You have the right idea but do not SPAWN, instead have two backgrounds following each other side-by-side and as soon as one if off screen use a change attribute to move it back to the other side of the screen so they are swapping over each other.
MOVE direction 180
WHEN self.position.X <-240 then
Change atribute self.position.X to self.position.X +720
You wil have to play with the numbers depending on your size graphics etc.
Good luck
JCFord
But i think that if you do that (the moving actors) you will need to do it with three rather than two.
Thanks man!
http://gamesalad.com/game/play/33976
JCFord
http://gamesalad.com/game/play/52419
http://itunes.com/apps/freeeastereggandspoonrace
I have no idea whether this would be better or not.