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 againUsers browsing this forum: No registered users and 1 guest