Scroll Background Question
![Atomsk](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello,
Just started using Game Salad recently and am working on a side scrolling game for the iPhone. Everything is working fine so far except for the background.
My Background file was about 8000x640 (I'm working with the 960x640 iPhone size, but obviously made the width longer to allow it to scroll from off screen). Unfortunately it seems Game Salad won't let me use a size that big.
So I decided to cut my background into 10 smaller images of 960x640 each. I then told the first image (Bg1) to spawn BG2 on creation at the x/y location directly next to it, and then told Bg2 to do the same for BG3 and so on. For the scrolling I told it to move when the player gets to a certain point on the screen.
The scrolling movement itself works great, but I can't get it to spawn/show the background images beyond Bg3. I dunno if it's not spawning them, or if its some sort of Game Salad limitation and won't show them, but they simply won't appear.
Sorry for the long post, just wanted to be thourough because I'd really like some help on this one. Anyone have any good advice or tutorial on how to do scrolling backgrounds? I don't mind scrapping everything I just typed above if there is a much better method to do it.
Thanks in advance.
Just started using Game Salad recently and am working on a side scrolling game for the iPhone. Everything is working fine so far except for the background.
My Background file was about 8000x640 (I'm working with the 960x640 iPhone size, but obviously made the width longer to allow it to scroll from off screen). Unfortunately it seems Game Salad won't let me use a size that big.
So I decided to cut my background into 10 smaller images of 960x640 each. I then told the first image (Bg1) to spawn BG2 on creation at the x/y location directly next to it, and then told Bg2 to do the same for BG3 and so on. For the scrolling I told it to move when the player gets to a certain point on the screen.
The scrolling movement itself works great, but I can't get it to spawn/show the background images beyond Bg3. I dunno if it's not spawning them, or if its some sort of Game Salad limitation and won't show them, but they simply won't appear.
Sorry for the long post, just wanted to be thourough because I'd really like some help on this one. Anyone have any good advice or tutorial on how to do scrolling backgrounds? I don't mind scrapping everything I just typed above if there is a much better method to do it.
Thanks in advance.
Comments
make your image so that it can tile (look for photoshop tutorials on how to make your own pattern). Then in the actor attributes panel under graphics set it to tile and just drag the actor as wide as the scene and the image will repeat. This will get rid of the need for dragging multiple actors into the scene.
cheers
Is there any way around that issue then of 10 images being too much? Perhaps instead making it so each image is it's own scene that loads when you reach the other side of the screen? I mean, I'd much rather it scroll but if that means cutting down my level then I'd rather take another approach, since the level design is already finished and ready to go.
Thanks for the help so far, I'm still new to game salad and iPhone gaming in general so I apologize if I'm not aware of this stuff, still learning.
Cheers
Go Green!!!
-drahc