🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
HELP!!!!! Whats Wrong with DirectInput
I am using the BOB game engine and I an making a shooting gallarey. I used this code to get the position of the mouse.
DI_Read_Mouse();
// move the mouse cursor
mouse_x+=(mouse_state.lX);
mouse_y+=(mouse_state.lY);
but when I tried to fire the gun in the program it kept on missing its targets. So then I made a BOB that would follow the mouse around.
cursor.x=mouse_x;
cursor.y=mouse_y;
and when I executed the program I was surprised to see that the faster I moved the mouse the farther behind the BOB was. How do I fix this? I am using directX5.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement