Hi I'm trying to make collisions work but I cant see what I'm doing wrong!
int collision = 0;
dbMakeObjectCube(2,1,1);
dbSetObjectCollisionToBoxes(2);
dbSetObjectCollisionOn(2);
dbMakeObjectCube(3,1,1);
dbLockObjectOn(3);
dbSetObjectCollisionToBoxes(3);
dbSetObjectCollisionOn(3);
while(LoopGDK())
{
char string[128];
sprintf (string,"FPS: %d Collision: %d",dbScreenFPS(),collision);
dbText(0,10,string);
if(dbObjectCollision(2,3)==1)
collision =1;
else
collision =0;
dbSync();
if(dbEscapeKey() || strcmp(dbInKey(),"q")==0)
return ;
}