Hi,
I want to implement functionality that will allow objects with sprites to travel through screen’s border and appear on other side.
Of course I can do coordinate check and if position point lefts visible part of screen it changes it to related from other side.
But problem is that object is NOT a point, it has a sprite, and I want that if any part of sprite lefts visible part of screen that part appears on other side.
One approach that goes to my mind is to create a second object, but it will make game architecture wierd…
Do anyone have an ideas how to implement it.
Picture will show what I mean.