I'm working on my FPS still, I want to place a restriction of the X rotation of my camera because obviously it is not a good thing to be able to turn it upside down. Here's my entire mouselook thing so far:
xrotate camera wrapvalue(camera angle x() + mouseMoveY()/10.0)
if (camera angle x() > 90 and camera angle x() < 270)
yrotate camera wrapvalue(camera angle y() + mouseMoveX()/10.0)
else
yrotate object 1, wrapvalue(object angle y(1) + mouseMoveX()/10.0)
endif
if camera angle x() > 90 then xrotate camera 89
if camera angle x() < -90 then xrotate camera -89
It's that last seperated 2 lines there... what am I doing wrong? Obviously something, because it it NOT working. Do I need to use wrapvalue?
Well whatever it is, I could really use some help
Ty in advance