Top down camera

Grab your favourite IDE and tinker with the innards of game engines

Top down camera

Postby stickler on Sat Apr 10, 2010 8:59 pm

Hello,
A friend of mine and myself are working on a small game/demo that will require a top down perspective similar to games like Shadowgrounds or the Sigma game series. Even Gauntlet comes to mind. He's the coder, I do everything else.

The problem is the tutorials he did find were lacking (On the valve developer network). He's never coded for a game before so I figured the best place to get him started was interlopers. I searched the forums but only came up with a person doing a RTS game who even released the source, but sadly it's taken down now.

I know we could use another engine, but I particularly like source as I've used it forever. Another reason is COOP mode.

Basically, we're trying to get a top down view, the camera will swing/rotate view whichever way the crosshair/person is pointing to, similar to these screenshots:

Image

Image

Any tutorials/points in the right direction would be very helpful. Thank you.
stickler
Dumpling
Dumpling
 
Joined: Wed Jun 13, 2007 8:04 am

Re: Top down camera

Postby Surfa on Sat Apr 10, 2010 9:05 pm

cam_idealpitch 90
Surfa
May Contain Skills
May Contain Skills
 
Joined: Sun Dec 30, 2007 3:04 pm

Re: Top down camera

Postby Zecrah on Sat Apr 10, 2010 10:07 pm

Then turn up the distance dramatically for a top-down feel too.
Major Banter wrote:Zecrah, you've come from nowhere yet have rapidly become a Hammer God.

Wtf.


Check out my weapons tutorial
Zecrah
Design Section Moderator
 
Joined: Sat Sep 27, 2008 10:56 am

Re: Top down camera

Postby stickler on Sat Apr 10, 2010 10:14 pm

Surfa wrote:cam_idealpitch 90


Zecrah wrote:Then turn up the distance dramatically for a top-down feel too.

Wow, that easy?

Thanks for everyone's help. Now I feel kinda stupid for asking in the coding section and this could be done within an entity. Sorry!

I'm still going to need my coder to code in camera movements/crosshair and such to make it fluid, I'd assume. Anyways, thanks again guys.
stickler
Dumpling
Dumpling
 
Joined: Wed Jun 13, 2007 8:04 am

Re: Top down camera

Postby Zecrah on Sat Apr 10, 2010 11:53 pm

They're not entities, they're console commands. Even easier xD. You'll have to restrict them some how so the player doesn't change them in the console though, but I don't think it's too diffiult.
Major Banter wrote:Zecrah, you've come from nowhere yet have rapidly become a Hammer God.

Wtf.


Check out my weapons tutorial
Zecrah
Design Section Moderator
 
Joined: Sat Sep 27, 2008 10:56 am

Re: Top down camera

Postby stickler on Sun Apr 11, 2010 12:33 am

Zecrah wrote:They're not entities, they're console commands. Even easier xD. You'll have to restrict them some how so the player doesn't change them in the console though, but I don't think it's too diffiult.


Yeah, I was referring to that entity that you can use to do console commands in game via a trigger but I forgot the name. Maybe I was just drunk and imagined that..anyways. Until my team gets this figured out (he's new to source) we're at a standstill since I can't map and model until he gets the camera working right so the dimensions look correct.
stickler
Dumpling
Dumpling
 
Joined: Wed Jun 13, 2007 8:04 am

Re: Top down camera

Postby Gary on Sun Apr 11, 2010 1:01 am

Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Top down camera

Postby Zecrah on Sun Apr 11, 2010 9:29 am

Or add it to the config.cfg.
Major Banter wrote:Zecrah, you've come from nowhere yet have rapidly become a Hammer God.

Wtf.


Check out my weapons tutorial
Zecrah
Design Section Moderator
 
Joined: Sat Sep 27, 2008 10:56 am

Re: Top down camera

Postby Welsh Mullet on Fri Aug 20, 2010 12:49 pm

Alien swarm code base?
That's what she said.
User avatar
Welsh Mullet
Regular
Regular
 
Joined: Mon Jul 12, 2010 10:37 am
Location: Reading... Or sometimes Wales for the weekend.

Return to Programming

Who is online

Users browsing this forum: No registered users

cron