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 / 3D Platformer?

Author
Message
KC745
15
Years of Service
User Offline
Joined: 24th May 2009
Location:
Posted: 15th Oct 2009 23:55
How would I make a 3d platformer? I have used DarkGDK in the past to make a FPS and have used sc_collision or what it is. I like the Ratchet and Clank style of game, I reserched that the genre is a 3D Platformer. I have designed all my levels and what I want it to do. So where should I Start?
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 16th Oct 2009 01:58
If you can afford it I would go with DarkPHYSICS. It's probably the best you can get for something like that.

How is it going
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location: California
Posted: 16th Oct 2009 04:52 Edited at: 16th Oct 2009 05:29
I'm not sure what you mean...

based on your join date I assume I should start at the begining

i'll use psuedocode:
while( GDK ) {
input( 1, 1, x, y );
collision( 1, x, y );

sync;
}

void input( int index, int speed, int& x, int& y ) {
//repeat for all input keys
if( upkey ) {
move object index, speed;
}

//update player position for collision
x = object position x;
y = object position y;
}

void collision( int index, int& x, int& y ) {
if( object collision ) {
...blah blah blah
}
}

hopefully that helps and just sitting here thinking to myself, if you know about classes yet, I recommened using a player class or something

class player
{
public:
int x, y;
input();
collision();
};

define the functions...

that's much more effective... if you know about classes yet
KC745
15
Years of Service
User Offline
Joined: 24th May 2009
Location:
Posted: 16th Oct 2009 20:06
Yh I joined yesterday because I couldn't remember my username and this site only lets you change your password, Im not at my computer atm but ill try that code out soon thanks
KC745
15
Years of Service
User Offline
Joined: 24th May 2009
Location:
Posted: 16th Oct 2009 20:07
Nvm I thought I created a neww account for some random reason?
How is it going
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location: California
Posted: 17th Oct 2009 20:42
lol...
Yeah, I recommend using the class example... ultimately this will be much more beneficial

Login to post a reply

Server time is: 2024-10-01 14:36:10
Your offset time is: 2024-10-01 14:36:10