I created an AnimatedSprite class that drew a specific TextureRegion . Sometimes I need a hue color effect, so I set (this.color is the Color field of my AnimatedSprite ):
super.draw(batch, parentAlpha); batch.setColor(this.color); batch.draw(this.frames[this.currentFrame], x, y, originX, originY, width, height, scaleX, scaleY, rotation) batch.setColor(Color.WHITE);
However, when I have an AnimatedSprite color set to black or any color, everything else has that hue. I even try flush() , end the batch and start a new one, etc., but nothing works.
Please help me apply the hue effect correctly. I would appreciate any idea.
source share