Skip to main content
gamedev.net
🔒 Locked

Mouse Movement

Started by Smokedogg Apr 10, 2005 at 11:40 AM 1 replies 350+ views
Original Post
Smokedogg
Smokedogg
I recently downloaded the source code to the old player world (mirage) game engine. I am trying to tinker with it to try some new features. I am trying to get it so that the player moves by mouse click instead of just using the arrow keys. I want the player to move to the location of the mouse click. Unfortunately my efforts havent worked out too well. The player does move but he runs off the screen and wont stop for some reason. Keep in mind I am doing this using DirectX drawing the player inside a picture box. Any ideas/suggestions/code would be greatly appreciated. Thank you for your assistance.
doho
doho
Please post some code with your specific questions. It's impossible to help you the way you are asking for help now.
Smokedogg
Smokedogg
Unfortunately I do not have any code on hand because I am not at home at the moment. I am just trying to get DirectX to draw a player to the screen using sprites and then use the mouse to move him around. If you know of any tutorials for that or have any suggestions then please post them. I will give you the code I have if you still require it. Thank you for your assistance.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.