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 / My questions - Sidescroller 3D

Author
Message
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 16th Jan 2009 23:00
Thanks Nomad, But at the moment I got some other stuff to work on wich for me is more important.
But I will try to get back on this soon.

There is no spoon Or is there
15
Years of Service
User Offline
Joined: 5th May 2009
Location:
Posted: 6th May 2009 02:32
I am trying to make a a 3rd person shooter and I am having trouble with sparky's collision. It says that there is a build error here is the code so far[// Dark GDK - The Game Creators - www.thegamecreators.com

// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"





// the main entry point for the application is this function
void DarkGDK ( void )
{

// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 1000 );

SC_Start ();

dbLoadObject ( "Classroom.x", 1 );
SC_SetObjectCollisionOn( 1 );
SC_SetupObject ( 1, 1, 1 );


dbSetObjectLight ( 2, 100000 );
dbPositionCamera ( 1, 2, 9 );
dbSetObjectLight ( 1, 90000 );
dbHideMouse ();

dbColorBackdrop ( dbRGB ( 1, 5, 10 ) );
dbSetWindowSize ( 1000, 800 );
dbMakeLight ( 2 );
dbPositionLight ( 2, 100, 50, 50 );






















// camera variables
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;


// our main loop
while ( LoopGDK ( ) )
{
dbControlCameraUsingArrowKeys ( 0, .1, .1 );

// create a rotation axis based on mouse movement
fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f );

fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f );

// rotate camera
dbXRotateCamera ( fCameraAngleX );
dbYRotateCamera ( fCameraAngleY );







// update the screen
dbSync ( );
}

// return back to windows
return;
}]
There is no spoon Or is there
15
Years of Service
User Offline
Joined: 5th May 2009
Location:
Posted: 7th May 2009 17:23
Nevermind, it doesn't have a build error anymore, the collision just doesn't work.

Login to post a reply

Server time is: 2024-09-30 15:32:22
Your offset time is: 2024-09-30 15:32:22