if (state == 3) { state = 4 statetime = 0 } if (state == 2) { yVel = -4 xVel *= 0.5 }