I want an image to only be added once to the world, but if the run button is clicked the method is called over and over again. How can i add an object only once?
import greenfoot.*;
// possible other imports
public class MyWorld extends World
{
// possible field declarations
public MyWorld() // constuctor header
{
super(600, 400, 1);
// place code to add image here
// possible other initial set-up code
}
// any methods you may have
}