Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 5744 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make a camera where you can use the arrow keys to move and the mouse to set the direction. How would i do something like this ?

Share this post

Link to post
Share on other sites
well. I would suggest that you learn how to program a simple camera, then learn how to program user input (with mouse and keyborad). And believe me once you know all that, makeing a movable camera is really easy.

there are some good directInput tutorials at andypike.com i think. and beginner directX tutorials show you how to make a asic camera. so get a hold of some of em. and direct input is also really easy. i learnt it from the sdk docs actually. the tutorials in ther are easy to follow and pretty simple. give it a try

Once youve done all that. then all you really have to do is change the x,y,z values of the camera position depending on what the user pressed or where the user moved the mouse. and in teh case of dirwectX you'll also have to change the loo-at coordiantes (thats where the camera is actually pointing). Programming a camera is more to do with input programming then anything else.

"I know sometimes I ask stupid questions...but i mean well "
[Triple Buffer]|[SCRIPTaGAME]|[My Old Site]

[edit] <_>

[edited by - alfmga on October 3, 2002 5:17:32 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!