hey i think your problem is that your obects are still touching, you have to move your player object when there is a collision
if(dbObjectCollision(74,103)==0){
//move player back from object
}
but then you have to know what direction you were going which you could use a varible to keep track of, or you could try:
//if (dbObjectCollision(74,103) == 0)
//{
if (dbUpKey())
{
if (dbObjectCollision(74,103) == 0)
//move player back
else{
dbMoveCamera(2 + run);
// make gun move
dbSetObjectSpeed ( 3, 65 + runimage);
}
}
if (dbDownKey())
{
if (dbObjectCollision(74,103) == 0)
//move player back
else
dbMoveCamera(-1);
}
if (dbLeftKey())
{
if (dbObjectCollision(74,103) == 0)
//move player back
else{
dbYRotateCamera ( 0 , dbCameraAngleY( 0 ) - 90 );
dbMoveCamera(2);
}
}
if (dbRightKey())
{
if (dbObjectCollision(74,103) == 0)
//move player back
else{
dbYRotateCamera ( 0 , dbCameraAngleY( 0 ) + 90 );
dbMoveCamera(2);
}
}
//}
logicandchaos