I'm scaling the image of one of my actors by 5/2. The problem is, when I switch to other images using animation this scaling doesn't carry over.
Currently, I'm using something along the lines of...
...in the constructor of the class. I think my issue is that it's a one-time thing in the constructor, but if I put it in the act method it's repeatedly executed. Can I make it so it's executed once, whenever an image is changed?
Thank you!
getImage().scale(getImage().getWidth()*5/2,getImage().getHeight()*5/2);