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.
Visit http://members.xoom.com/ivanickgames
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement