11-15-2022, 11:55 PM
Hi! (again!)
I'm trying to implement sprite warping, so if a part of the sprite goes out of screen, it is warped to the opposite side of the screen (see the picture).
![[Image: image.png]](https://cdn.discordapp.com/attachments/808677096788328448/1042051106718629888/image.png)
Do you have an idea how I can achieve this please? The booleans fields for X and Y warping in the Sprite struct are ready.
I'm trying to implement sprite warping, so if a part of the sprite goes out of screen, it is warped to the opposite side of the screen (see the picture).
![[Image: image.png]](https://cdn.discordapp.com/attachments/808677096788328448/1042051106718629888/image.png)
Do you have an idea how I can achieve this please? The booleans fields for X and Y warping in the Sprite struct are ready.