public void tick(long delta) {
//        drawX = (int)(realX - game.getCameraX()) - (width / 2);
//        drawY = (int)(realY - game.getCameraY()) - (height / 2);

    	//animation
    	if(animated) {
            animationTimer -= ((0.000000001 * animationSpeed) * delta);
            if(animationTimer < 0) {
                animFrame++;
                animationTimer = animationTimerMax;

                if(animFrame > animFrameMax) animFrame = 0;
            }
    	}
    }