Advertisement

Game Programming Tut 5

Started by August 27, 2001 09:22 AM
1 comment, last by Integer 23 years, 5 months ago
Hi all I want to know how i can change the mousespeed (or sensitivity). I tried to add serveral factors to the special variables, but nothing worked. Can anybody help me please Thx visit www.developersworld.de
If you use a game cursor (not a windows one), just make variables ''x'' and ''y''. Then each time the mouse moves measure the change in direction and then do the following.

x+=(changeX*mouseSpeed);
y+=(changeY*mouseSpeed);

Then draw your cursor at postition (x, y). Hope this helps.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
Advertisement
Sorry but i dont understand what you mean. Could you explain what to change in the game dev tut 5, so i will understand it better:-)

thx

This topic is closed to new replies.

Advertisement