SFML community forums
Help => General => Topic started by: smilesprower on October 29, 2016, 12:42:13 pm
-
I am looking for advice to approach this problem.
The game will be 4 screens across.
The view will be 1 screen in size.
My player will always be in the centre of the screen.
When the player centre x point > 4th screen centre you should see the 1st screen again.
Thanks in advance
-
One possibility is to just render screen 1 at the place of screen 5 and as soon as screen 4 isn't visible anymore you reset the view to screen 1. The same goes for screen 4, you just redraw it at screen 0's position and as soon as screen 1 isn't visible anymore you reset the view to the screen 4.