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.

DarkBASIC Professional Discussion / Adding Character with 3rd person view...

Author
Message
dlannetts
16
Years of Service
User Offline
Joined: 3rd Apr 2010
Location:
Posted: 13th Jul 2010 15:39
Hi, l want to be able to add a character to my game aand put the game in 3rd person view, the view can wait for first l want to add a character and make it so when l push up, down, left, right, or spacebar the character will move in the direction or jump, but how do l make the character and give it movement? which program do l use? And what sort of basic coding would l use to bring this into the game? Yes l have searched both google and this forum but couldn't find much that suited me, can anyone help me with this?
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Jul 2010 15:51
Not yet, from myself anyway. I am putting a little tutorial together, like a fast track to making top down, third person games, like Zelda on the DS perhaps, or one of those arcadey zombie shooters - but it could easily be a good start for more traditional third person games too.

Will have a level editor, low poly character and enemies, collision, controls, attacking with swords, wearing hats, jumping. I'm gonna try and keep it as neat and understandable as possible - but anyway that won't be done for like 2 weeks.

If it sounds like something you want to check out, maybe spend the time learning some character modelling and animation. There's a lot of stuff posted over in the 3D chat area, if you can make your own characters, then you'll see how to get them moving and jumping before very long. It would be like a fast track to making a third person game engine.


Health, Ammo, and bacon and eggs!
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 13th Jul 2010 16:08
3DSMax2010 or some other modeling program would be the best plan for making models. There are plenty of free ones on the web-- seek and ye shall find. As far as 3rd person, take a look at "set camera to follow" command in DBP help-- that's the simplest way to do it. I prefer to do it myself:

Rotate camera: you need to set up three variables (floats): Yaw#, Pitch# and Distance#. Make sure they are global.
I like to have a key to activate the camera movement-- I use the RightClick on my mouse. When that is active do the check for mouse movement and adjust the Yaw# and Pitch# appropriately. The Distance# can be done by the scroll on the mouse (that's the mouse's Z-axis).

psudo-code:

You should put limits on the Pitch# so that it doesn't go past 0 or 180 (I set mine to about 10 and 170).

The fastest code is the code never written.
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jul 2010 19:49 Edited at: 13th Jul 2010 19:49
That can be done with any of the following programs:
The 3D Game Maker <--(Click and create game maker, it's not very flexible at all and I don't recommend it)
Dark Basic <-- (A programming language)
Dark Basic Professional <-- (This evolved from Dark Basic and is far more flexible. I would recommend using this program. You would need to learn programming though. I believe you can get it for FREE now. The game in my signature is being developed using this.)
Dark GDK <-- (It's just like Dark Basic Professional but you use C++ to do the programming instead)

Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 13th Jul 2010 19:52 Edited at: 13th Jul 2010 19:53
@Sixty Squares , Do you know what forum you are on?

The fastest code is the code never written.
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jul 2010 20:06
@Hawkblood: Lol, Yes.

He asked what program(s) he would use to A) make a model and B) make a third person game. You answered A, so I answered B. Program could mean actual coded program or a development program. I wasn't sure if he wanted code or not, and since you had already provided some code I decided to provide the other options. This is his 3rd post on this forum, and the other two were mostly about FPSC. I have no idea if he's even tried programming before, so I figured I'd just give him some background. If he doesn't need it, he can ignore it.

seppgirty
FPSC Developer
17
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 14th Jul 2010 01:27
Quote: "I am putting a little tutorial together, like a fast track to making top down, third person games, like Zelda on the DS perhaps, or one of those arcadey zombie shooters - but it could easily be a good start for more traditional third person games too.

Will have a level editor, low poly character and enemies, collision, controls, attacking with swords, wearing hats, jumping. I'm gonna try and keep it as neat and understandable as possible - but anyway that won't be done for like 2 weeks."


That sounds great Van B, i can't wait to see it. will it be an actual tutorial or very commented code? either will be great!

gamer, lover, filmmaker
dlannetts
16
Years of Service
User Offline
Joined: 3rd Apr 2010
Location:
Posted: 14th Jul 2010 14:52
Thanks guys for all this, yes l have got some basic stuff happening on DarkBasic Pro and l did have more posts on my other account created a new one but : ) So, l have a list of programs l could use to make my character and some code and help on making it 3rd person, but l am still confused, with the character, what file should l export it as and when l code the game how do l set it that if l push the up key the character use a specific animation to run up?

Thanks again peoples
seppgirty
FPSC Developer
17
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 31st Jul 2010 17:40
hey VAN B
i don't want to be a pest but, just wondering how that tutorial was coming along? and if you still plan on doing it? sounds like it has alot of promise

gamer, lover, filmmaker
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 1st Aug 2010 02:09
DBPro supports several formats, I feel that DirectX models load fastest though, so I go with them, though it will also load a .3ds file. as for the animation try something like:


DBPro is a fairly easy language to learn and I would definitely recommend it over any other game engine.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Aug 2010 22:36
Quote: " I feel that DirectX models load fastest though"


I think dbo loads the fastest.

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Aug 2010 09:15
Hey seppgirty, haven't forgotten, just been tied up with my main project for the last few weeks. I will find time to get it done.

Health, Ammo, and bacon and eggs!
seppgirty
FPSC Developer
17
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 26th Aug 2010 00:50
very cool Van B i'll sit here quietly until it's done ...

Man, this is like waiting for cookies to bake!



gamer, lover, filmmaker

Login to post a reply

Server time is: 2026-07-23 09:15:23
Your offset time is: 2026-07-23 09:15:23