2d sprite teleporation

Okey, I’m currently trying to create a wrapping function and when a sprite falls through the bottom it gets “teleported” to the top. I can’t seem to get this to work.

I if I don’t turn off Simulate Physics them the sprite does not get set to the right location.

And if I turn off Simulate physics when I teleport it to the top even if I turn the physics back on it has lost all of it’s previous motion.

anyhow, I can post some of the blue prints but there is not much too it. I’m using Set World Location on the sprite, could not find anything else to set its location that I did not have to turn off the Physics.

Any help would be awesome,
thanks,
Marek

I am not sure exactly what you are wanting to teleport. But for instance, I have a falling platform that once it falls off the screen it reverts back to its normal position. Is that similar to what you need to do?

No, I’m trying to have something fall through the bottom back to the top. in other words to wrap the game.

Okey, I converted it to an actor that contained a sprite (convoluted I know but I thought it was worth a chance as Actors have a function called “Teleport”) anyhow once I move/teleport or set the actor their all of the physics get screwed up and starts shooting across the screen. anyhow if there is any confusion I am attempting to create an “astroid” effect when a sprite leaves one side of the screen it shows up back on the other.

I have everything set up I just can’t get the object to teleport and keep it’s current speed and direction… I can move the sprite where I want using “Set World Location” or “Set Actor Location” or by now using “Teleport” but what ever I’m doing causes it lose it’s previous velocity.