I’m trying create functionality where if the player crosses the screen on the left, they appear on the right. I know a simple way of doing this, but I’d like it so rather than just snap position from left to right, you can “half cross” the bounds, so if the player crossed on the left but only halfway, you could see the other half of the player on the right.
You sometimes see asteroids clones do something similar. I’m not sure what the technique is called, so any help would be greatly appreciated.