Hello, i have problem with my OpenGL 2D camera. I try to do when camera reaches max 'X' he locks and can't move further. I don't know how to accurately explain my problem.
Here's the code:
if ( (( player.x + cubes[LastBlock].x ) - CameraPos) >= GetX( cubes ) + CameraPos)
CameraPos = LastCameraPos;
GetX function finds highest 'X'.
Edited by povilaslt2, 17 June 2013 - 12:46 PM.