Wrapping X Actor around camera
So I have some cars going by from left to right, only my scene is 30,000 pixels wide. So I used a bunch of constrains to the camera edge and interpolation to get it to work. However this seems pretty taxing.
I know you can wrap X and the actor will tile but it seems to only work when the camera hasn't moved. My camera moves and is not at the default.
So is it possible to have an actor wrap on X using motion.linear velocity X with a big ass scene while the camera is moving on the X?
cheers!
I know you can wrap X and the actor will tile but it seems to only work when the camera hasn't moved. My camera moves and is not at the default.
So is it possible to have an actor wrap on X using motion.linear velocity X with a big ass scene while the camera is moving on the X?
cheers!
Comments
I found away to do this with large scenes where the cam is moving:
Timer
Every 3 sec
change attribute self.position.x to Scene.camera.originX -30
change attribute self.motion.linear velocity x to 300.
This will get your actor to look around your camera..not sure if this is the best way but it's sure a lot less code than what I had last week! Hope this helps some people.