Ok, i am trying to do “mouse look” around the character, and i have little problem.
I don’t know how to explain -.- .
It just don’t rotate smoothly but i can only get it working perfectly if i add this:
r.setMousePosition(W/2,H/2)
But then my mouse is always in middle and i can’t use Inventory and that stuff.
I think my problem is here:
if M_Move.isPositive() and g.canMove:
# Values
W = r.getWindowWidth()
H = r.getWindowHeight()
X = M_Move.getXPosition()
Y = M_Move.getYPosition()
aa = .03 PosX = (X-W/2)*aa PosY = -(Y-H/2)*aa
Anyways try it … Right mouse button to rotate and up down.