Hello,
I am using Java Graphics2D to make my game.I haven't worked with it for a while, and I don't know how to do this..
I got a sprite sheet (that has multiple sprites on it). I know how to draw a sprite (using this https://docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html#drawImage(java.awt.Image,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20java.awt.image.ImageObserver) )... But I need to flip (horizontally or/and vertically) only one sprite on the image, not the whole image.
How can I do this?
Thanks,
MatejaS