this is my code when my program ends
What code must I add so that the program will only end when an actor touches the bottom of the screen?
1 2 3 4 | removeObjects(getObjects(A. class )); //this removes all actors from world GreenfootImage bg = getBackground(); setBackground( "Gameover.png" ); Greenfoot.stop(); //this stops the scenario |