Recently I've been having trouble using the getImage() method in my game.
Here's what you need to know:
I have a character in my game, that when he walks left, he faces left and when he walks right he faces right etc.
What i want to know is how to make him punch either left or right depending on the image.
Effectively i want:
if image = "left.png"
set image to "leftPunch.png"
and same for the right side.
if you do not know how to do this, if you can offer a simple example for the use of "getImage()", that would also be helpful.
Thank you

