Hi,
I want to replace the player image with 2 other images which alternate with each other every 1 sec, when the players lifepoints reachs a quarter of it. Everytime this is true, the game stops itself (moving objects are freezed) and the run/stop button appears at the top left corner. Only the 2 images are flashing. I've included all the methods that belong into this class in the act-method, so they can be played.
public void changeStatus(){
while(HP<=HPMax/4){
setImage("Player_2.png");
Greenfoot.delay(25);
setImage("Player_3.png");
Greenfoot.delay(25);
}
}

