So my problem is that i don't know how to mirror the animation of my actor, after the actor hits the border. The actor should travel between the two x-borders, but the animation works only in one direction. The animation cycles with 13 images and is everytime resized to the random generated size of the actor.
public void animate()
{
if (count % 6 == 0)
{
if(animateImage > 12){
animateImage = 0;
}
setImage("Vogel-mirror_" + animateImage + ".png");
animateImage++;
size();
}
}
