distance based game help

i started making a distance based game the other day that is basically something like berzerk ball or hotdog down a hallway kinda thing. anyway my problem is when my projectile reaches the edge of the screen (currently 1920px wide with Wrap X on) it then comes on from the left on a new screen.
i dont need to just have the floor/scenery moving on a loop according to the speed of the projectile do i? cos that involves maths :P
i dont need to just have the floor/scenery moving on a loop according to the speed of the projectile do i? cos that involves maths :P
Comments
have a rule in the object with attribute self position x is > scene width( in your case itll be 1920)
-destroyactor
when the baseball reaches the edge of the screen, it is leaving via the right side (i want it to be in the middle of the screen always) the camera does follow the ball correctly up intil it gets to the edge of my scene.....this is most likely to do with the wrap x i guess but i dont know how else to go about doing something like this
i basically need a floor that will be infinite as well, and also let the baseball collide, using a spawner doesn't really work well as because the scene is infinite i cant place the spawner outside the game area :S, plus there must be a more efficient way...
i tried making a floor collide actor that was like 5000000 wide and then tried to have the actual floor graphic (another actor) replicate constantly over the top, but when i do this the bouncing physics seem to fly right out the window and the 'baseball' (that isnt a baseball :P at all) never stops