Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / 2d rpgs and cameras

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 29th Apr 2007 04:41
hello all. Im making an rpg STYLE game. it is going to be a 2d game aswell, similar to commandoes 2/ (i think that was 2d) however, i cant figure this out.


in fps games, your health bar is sprite because even though the camera is looking up/down/right.left, the image stays in the same spot because it is on the 2d plane, not the 3d plane with the fps level is on.

in a game like baulders gate 2, the player AND level are 2d. when the player moves, he stays in the middle of the screen as he moves around. how do you do that? the character moves off the screen if you move it around to much. i thought that mabye the level itself moved around, but then monsters would clipped and stuff. is there a way to make a camera track a 2d image? or just move on the 2d plane, and not the 3d plane, because even when you move it up, and you move the sprite up, the sprite goes off the screen.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 29th Apr 2007 21:44
does any one know?


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 30th Apr 2007 02:35
When you move the sprite you want the screen to follow, you instead move every other sprite in the opposite direction. Thus if you were to move the character sprite up by one unit, you instead move all the other sprites down by one unit.
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 30th Apr 2007 05:35
but then dont enemy characters get 'clipped' by the terrain?


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Apr 2007 05:48
Quote: "it is going to be a 2d game"


If it is, then where does the terrain and camera come into it?

A proper 2D game will usually have a 2D tiled 'landscape' and sprites (ignoring the fact that DBP sprites are actually 3D for the moment), so when your character moves, all the sprites and the tile array moves together. If the tiles are isometric, then it looks 3D - but isn't.

If you have a camera to control then you are talking about a 3D game...

TDK_Man

Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 30th Apr 2007 17:12
Quote: "
but then dont enemy characters get 'clipped' by the terrain?"

no because they will be moved down along with the terrain sprite.
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 30th Apr 2007 21:38
OOOOOOO. i get it. now i feel really dumb. thanks for helping me out guys.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st May 2007 21:59 Edited at: 1st May 2007 21:59
I wrote a tutorial yesterday to help someone else out, but you might find it useful in getting your 2D map started.

http://zimnox.com/?page=dbTutorials


Login to post a reply

Server time is: 2024-11-25 19:51:28
Your offset time is: 2024-11-25 19:51:28