Hi all, i m using Sparky's Collision library but i m not getting any kind of collision can any one tell me why???
here is sample...
in Load Player Function
void LoadPlayer()
{
dbLoadObject("Media//Objects//Player//Player.dbo",10);
SC_SetupObject(10,1,2);
}
Load map function
void LoadMap()
{
dbLoadObject("Media//Maps//World//world.dbo",3);
SC_SetupObject(3,1,1);
}
here is main
void DarkGDK ( void )
{
dbSyncOn();
SC_Start();
dbSyncRate(60);
//Some other variables
LoadSky();
LoadMap();
LoadEnemy();
LoadPlayer();
while (LoopGDK( ) )
{
// I Updated the SC Objects
SC_UpdateObject(3);
SC_UpdateObject(3);
//Some other and Gravity Funtions to pull object downwards....
}
can anyone tell me where i m wrong...???