Quote: "anyone? <Im beggining to feel ignored >"
I wish this community was stronger.
It will be great to know also any problems with the current collision system.
If it always turns to left it is because you are not taking into account the current camera angle, and you are turning always to the same side.
I have not tried, but it should be something like:
if(dbObjectCollision(3,101+SIZEM*SIZEM+1)==1)
{
collision = 1;
if (dbCameraAngleY(0)<180)
{
dbYRotateCamera(dbCameraAngleY(0)+90);
dbMoveCamera(-.25);
dbYRotateCamera(dbCameraAngleY(0)-90);
}
else
{
dbYRotateCamera(dbCameraAngleY(0)-90);
dbMoveCamera(-.25);
dbYRotateCamera(dbCameraAngleY(0)+90);
}
}
else
collision = 0;
I hope I'm right.