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.

Dark GDK / Camera Following your Character

Author
Message
3dmasters
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 12th Nov 2009 11:47
Hello All,
Does anyone have samle code to make a character move around.
Also to make the camera following the character.

Thank you,

Here i am!!!
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 12th Nov 2009 16:15
The code is very similar to that in DarkBASIC. I would advise having a look at some of this:
http://developer.thegamecreators.com/?f=t01/3d_tutorial_index

Then simply convert the code over into DarkGDK - it's pretty simple, mostly it's just things like changing load object into dbLoadObject and suchlike.

Those tutorials should give you a good idea of how to go about it though, which is probably more useful than just the source code in itself (although obviously it contains that as well, just for DBC not DGDK)

"The fools may crash down upon us in thunderous waves, but we shall Jeku slap them back from whence they came"
-BiggAdd Oct 28th 2009
3dmasters
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 12th Nov 2009 19:49
Thank you for responding,

I understand i just wanted to hear form someone else.
Was looking at the code and started see. If i am not right tell me.
The code is like 89% the same. Just push the word together and add db in front of it.

Thanks again,

Here i am!!!
3dmasters
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 12th Nov 2009 22:22
Hello All,
Here is my code,


I am having a problem with getting the camera to be right behind the character and follow him. Could anyone give me some pointer to get it working.
Thank you,
P.S. I am including my charactor i made.

Leroy

Here i am!!!

Attachments

Login to view attachments
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 14th Nov 2009 12:35
It looks fine but try this:

Login to post a reply

Server time is: 2024-11-20 09:40:23
Your offset time is: 2024-11-20 09:40:23