Disappear out one end of view and appear in opposite.

Hi,

I’m trying to make a script so that when you leave the view in a 2D world you appear at the other side of the view. If you get what I mean. Very similar to the classic asteroid game: http://whywhywhywhywhy.com/images/asteroid2.jpg

At the moment I’m using empty objects with colliders to teleport the player to the opposite side of the screen. But I can’t get the player to precisely the opposite side using this method.

Any ideas for other methods?

Thanks a lot,
Stuart

You could do this.

–Eric

A much better way of doing it than mine.

Thanks.