if(can_jump==1) ?
Posted: Mon Feb 16, 2009 11:02 am
Why beside I do not work the action of one jump?
that it is necessary to do?
that it is necessary to do?
if(jump == 1)//if the varible jump equals 1 and only one do the things in the brackets {}
{
yvelocity -= 10;//change the yveloicty to make the player go up
jump = 0;//change the varible so the player can't jump twice
}
jump = 1;//resets the jump varible to jump again