Smooth Mouse Movement
right now i''m using GetCursorPos for mouse movement
i found tho because it only returns integers the movement is jerky when my character turns...is there a good way to smooth movement without losing sharp control of the mouse...
duckbob
I can not think of anything smart, but I know there used to be a
trick around float numbers. If you want to keep the mouse using integers, and if the game needs floats maybe you could fool the game that say instead of 1.5 u use 15 and that is integer, how you interpret is up to you, so u could make it "virtually as a float" redefining the whole range. So say instead of using a range from 0 to 3, having possible values like 0.3, 1.3 blabla
u could use a range from 0 to 30, the value then would convert to
3, 13 ...Work on that idea, maybe it is usefull, maybe I am just full of bull...I never tested this idea in practice

trick around float numbers. If you want to keep the mouse using integers, and if the game needs floats maybe you could fool the game that say instead of 1.5 u use 15 and that is integer, how you interpret is up to you, so u could make it "virtually as a float" redefining the whole range. So say instead of using a range from 0 to 3, having possible values like 0.3, 1.3 blabla
u could use a range from 0 to 30, the value then would convert to
3, 13 ...Work on that idea, maybe it is usefull, maybe I am just full of bull...I never tested this idea in practice


This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement