Make only one actor use scene wrapping?
Is it possible to have only one actor use scene wrapping? In my side scrolling game the ground moves past to give the effect of moving but the ground has to be the only thing that wraps or it will completely mess up my game.
Thanks
Thanks
Comments
when self.position.x = -XXX
change attribute selt.position.x to XXXX
When self.postion x =< 0
change self.position x to 320
You have to include the < symbol as the X postion may never equal exactly 0.
Use a number half the width of the actor.
Example:
Actor width = 100
When self.postion x =< -50
change self.position x to 370
This way the actor is out side of the camera when it changes position.