Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

Camera controls with RTS game

This topic is 5012 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 am working on a mapeditor and a RTS game. The camera control I was using was to simple and wasn't working well enough for much. So now I need to make a camera control class and was wondering if anyone had a good tutorial on a camera control that was geared towards RTS games and not FPS games? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Most RTS cameras have the following controls:
arrow keys = scroll around the map
mouse at the edge of screen = scroll around map
mouse wheel = zoom in/out

Then just have the camera looking at the ground on an angle that you like.
You could use the user input to apply force vectors and use acceleration to make it look smoother.

Hope that helps

Share this post


Link to post
Share on other sites
yeah for the most part in an RTS unless your doing a sphere based area (if your in outerspace like in homeworld1/2) then a fixed camera position is usually what real time stratagie games use i would be cool to add some dynamic camera effects though but it is by no means nessisary most RTS function fine without

Share this post


Link to post
Share on other sites
Quote:
Original post by MARS_999
I am working on a mapeditor and a RTS game. The camera control I was using was to simple and wasn't working well enough for much. So now I need to make a camera control class and was wondering if anyone had a good tutorial on a camera control that was geared towards RTS games and not FPS games? Thanks


probably the easiest way is for you to take your FPS camera system and just dont update the y coord when you are going forward/backward or strafeing (WASD). Only update the y coords on zooming and point the camera to look down at some angle.

The window border mouse should be pretty trivial.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!