I have modified it to this and when i press space it jumps and then it falls down.
I have tried sparky but when i set the collision with the ground it doesn't let me go over it.
I included the whole "game" project.
What should I do, should I use sparky?
Forward thanks.
if (dbSpaceKey()==1 && jump==false)
jump=true;
if (jump==true && dbObjectPositionY(ball)<=maxheight+2)
{
dbPositionObject(ball,dbObjectPositionX(ball),y_pos,dbObjectPositionZ(ball));
y_fSpeed--;
y_pos+=y_fSpeed;
if (y_pos==maxheight) max=true;
}
if (max==true&&y_pos>21)
{
dbPositionObject(ball,dbObjectPositionX(ball),y_pos,dbObjectPositionZ(ball));
y_fSpeed++;
y_pos-=y_fSpeed;
if (y_pos==23) {max=false;jump=false;y_pos=0;}
}