Help With Scene Wrapping!?
AppDMaster
Member Posts: 1
How does one go about making the picture-background wrap around so that it seems like it is always moving? Yet, keeping the actor in the same spot at all times?
Best Answer
-
SlickZero Houston, TexasPosts: 2,870You would have to scroll the background, and when it reaches a certain x or y coordinate, you would use a rule that said when it reached that specific coordinate, make it jump back to its starting position and scroll across the screen again. The image should be wider, or taller than the gameplay area, and It will flow better if you duplicate the same actor and position it side by side (or on top of each other if you are using portrait mode) and have them scroll across the screen at the same speed.
Once the first one is out of view, it would jump back to the original starting point while the second one is currently going across the screen, and once the second one is off screen, have it jump back to its starting position. Rinse and repeat.
There is a wrap effect that you can apply to an image as well, but depending on how you are going about making your game, it may not be suitable for what you are doing. It all depends on if you are having the main actor moving across the screen, or if you are making the background move to simulate the character moving, like in an endless runner.
Answers
http://www.deepblueapps.com/gs-santago/
Darren.