How can I add screen wrapping to my 2D game?

I’m working on a platformer and would like the character to leave one side of the screen and enter at the opposite end similar to Towerfall.

I was following this tutorial but it doesn’t work well and lead to many bugs. Screen Wrap Tutorial

I was thinking of just doing some sort of portal mechanic but that seems kind of hack. Is there a better way to do this that someone can explain to me?

I’m coding in C# by the way.

Thanks in advance!

Did you ever get this sorted?

Try checking this out

:slight_smile: