public void changeAnimation(StateActor state){

		this.reset();
		switch (state){

		case UP : 
			nbSprites=7;
			currentSprite = up;
			break;
		case DOWN : 
			nbSprites=7;
			currentSprite = down;
			break;
		case LEFT : 
			nbSprites=7;
			currentSprite = left;
			break;
		case RIGHT : 
			nbSprites=7;
			currentSprite = right;
			break;
		case ATTACKINGUP :
			nbSprites=6;
			currentSprite = attackingUp;
			break;
		case ATTACKINGDOWN :
			nbSprites=6;
			currentSprite = attackingDown;
			break;
		case ATTACKINGLEFT :
			nbSprites=6;
			currentSprite = attackingLeft;
			break;
		case ATTACKINGRIGHT :
			nbSprites=6;
			currentSprite = attackingRight;
			break;
		default:
			break;
		}
	}