private void doAnim(Graphics g, double timeDiff, ImageObserver observer) {
		Player c = EntityStore.self().getCombatant(entityID);
		int facing = c.getDirection();
		boolean moving = c.isMoving();
		if(animCount <= 0){ //Slows down animation
			if (!moving) { //If he is standing still
				imageIndex = (facing + 3) / 2 - 1;
			}else if (moving) { //If he is moving
				imageIndex = (facing + 3)  / 2 + (animStep * 2 - 1);
				animStep = (animStep == 1) ? 2 : 1;
			}if (attacking){
				imageIndex = (facing + 3) / 2 + (animStep * 2 - 1) + 4;
				animStep = (animStep == 1) ? 2 : 1;
				attacking = false;
			}else if(shooting){
				if (c.getDirection() == -1) imageIndex = 10;
				else imageIndex = 11;
				shooting = false;
			}
			animCount = ANIM_DELAY;
		}else{
			animCount-=timeDiff;
		}
		
		width = chuckImages[imageIndex].getIconWidth();
		height = chuckImages[imageIndex].getIconHeight();

		if (c.getDirection() == - 1){
			x = (c.getX() - (width  - xBounds));
			y = (c.getY() - (height - yBounds));
		} else {
			x = c.getX();
			y = c.getY();
		}
		
		g.drawImage(chuckImages[imageIndex].getImage(),x,y,observer);
	}