Movable Scene
lpetrowicz
Member Posts: 12
Alright, So I am working a basic shooter game to get my feet wet. Where I am struggling right now is with the moving background. What I have now is a background (blue sky 480x320) which I have and want to stay stationary. On top of the background, I have placed a .png of a skyline (480x320) and I want it to scroll by and then repeat. What must I do to make this happen? Thanks in advance.
Comments
For the skyline you can tile the actor for the length of the scene and set its horizontal wrap to tile
Here is a paralax tutorial:
Need Help? Email Me | Templates | Full Game Source Code
Inside the paralax actor: when game.fly is true (Do paralax motion)
This way whenever the plane is moving the skyline is too. Just make sure to tile the actor the width of the scene, and turn on Wrap X.
Need Help? Email Me | Templates | Full Game Source Code