How to make a LONG sidescroller background? o_O
WolfieEnsalada
Member Posts: 26
Hey everyone! So I've been working on this game which is basically supposed to work like a sidescroller. When you tap the screen, the character jumps to avoid obstacles. It sounds pretty simple, but since I've just started using GameSalad, it's been fairly difficult to figure out how to make it. xD
My main problem right now is that the background is supposed to scroll by as the character runs, but the dimensions of this background are 90000 x 320, so it's been next to impossible to find an appropriately sized image for it. XD I tried making a gradient image with Photoshop and Acorn, but both times the programs crashed due to the oversized dimensions.
So, my question is... is there any way to add in a background image that can fit this? Maybe by tiling one image over and over again? (Although when I tried doing that I ended up having to drag in the background actor 90 or so times, don't want to go through that again. xD) Any ideas? Or is there a special behavior or attribute I can use to help with this?
My main problem right now is that the background is supposed to scroll by as the character runs, but the dimensions of this background are 90000 x 320, so it's been next to impossible to find an appropriately sized image for it. XD I tried making a gradient image with Photoshop and Acorn, but both times the programs crashed due to the oversized dimensions.
So, my question is... is there any way to add in a background image that can fit this? Maybe by tiling one image over and over again? (Although when I tried doing that I ended up having to drag in the background actor 90 or so times, don't want to go through that again. xD) Any ideas? Or is there a special behavior or attribute I can use to help with this?
Comments
Blaze (nonscrollable layer)
> Blaze
Background (scrollable layer)
> Forest
Other Background (nonscrollable layer)
> Ground (for gravity rule)
So each actor is in a different layer, which is probably wrong. What should I change to make the background scroll? o_o
So, if you put blaze in a nonscrollable layer, the ground must be in the non scrollable layer, or else blaze would fall, not touching it. Therefore, the ground will not scroll. Just the forest.
If even the forest do not scroll, try to put some actors in a scrollable layer in the scene, away from the camera. If I remember correctly, the camera do not scroll until there's something scrollable ahead.
EDIT: I fixed the layers, but the background still won't scroll. Should I apply an attribute or behavior to the background? Right now the only ones applied to it are the "Resume Music" and "Change Scene" ones, which don't have anything to do with scrolling, but when I use "Accelerate" or "Accelerate Towards" it doesn't work. o_o
EDIT 2: Wait, I'm gonna try the thing with the scrollable actors ahead and see if it works. xD
EDIT 3: Nope, that didn't work either. D= The layers are like this right now:
Blaze (non scrollable)
> Blaze
Background (scrollable)
> Forest
Ground (non scrollable)
> Ground
I have a feeling this doesn't have anything to do with the layers, but maybe a glitch in GameSalad now. o__o" Those layers should be working! But then again, it could be something I'm doing wrong. xP
EDIT: All right, I figured out the scrolling issue actually. xD Basically, what I had to do was apply the "Move" behavior to the Forest background and make the Forest actor "Movable" under Physics so that way it moves.
Unfortunately I now have another problem. xD Now the background scrolls, but it stops at a certain point and just starts... spazzing out? Like it moves from side to side really quickly and gets stuck. o__O I have no idea why this is. Anyone else have this problem?