Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Why my Player don't rotate the camera?

Author
Message
AppStar
13
Years of Service
User Offline
Joined: 15th Aug 2011
Location:
Posted: 5th Apr 2015 22:52 Edited at: 5th Apr 2015 23:27


All works fine A,S,D,W movement but if i try to rotate to mouse nothing works...
Why?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 6th Apr 2015 15:00
Maybe dividing by 16 is making the move too small to be noticeable? Try increasing the amount you are rotating by?

Using AppGameKit V2 Tier 1
29 games
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 8th Apr 2015 01:56
I tried you code and it works for me, in that the camera rotates left and right and pitches up and down when the mouse is moved.

Maybe the GetPointerX() and GetPointerY() commands don't work with your mouse. Have they worked in the past? Have you tried using GetRawMouseX() and GetRawMouseY() instead.

Login to post a reply

Server time is: 2024-11-25 20:43:43
Your offset time is: 2024-11-25 20:43:43