Thanks for the help Dark Coder. I have been looking on Timer Based Movement and i will integrated it as soon as i finish with the basic mechanics. Anyway, my level is a 3D Object (.X) which i load. I use sparky for the collision. My jumping code would be something like this:
float jSpeed = 1.4f;
.........................
if(dbSpaceKey())
{
if(jSpeed > 0.04)
{
jSpeed = jSpeed - 0.07f;
}
dbPlayObject(playervar,0,15);
dbPlayObject(900,0,15);
dbPositionObject(playervar,dbObjectPositionX(playervar),dbObjectPositionY(playervar)+jSpeed,dbObjectPositionZ(playervar));
}
if(!dbSpaceKey() && collision == 1)
{
jSpeed = 1.4f;
}
Now, the problem i am facing is that it jumps on walls, and that is something i don't quite like, and i can't find a way not to make it do that. What i did to fix the bug for a level was i limited the place where the player could jump, like if it was near the wall jump wouldn't work there. For the time it worked but the problem is i started adding new levels and the problem is some of them are to complex and i can't waist time by "hard coding" every space where a player can jump. So my question to you guys is, any idea on how to change my jump routine so that the player won't get to "slide jump the wall"(and the ceiling while where at it). Thanks in advance, and i do not need code, just ideas, thank you.