In my program, I am trying to add an actor in order to remove some other objects in the program. The problem, however, is that whenever I run the program and click on the object, it duplicates the object instead of running the method attached. Any ideas as to why this is happening?
//This is what it should do when I click the object "start"
else if(Greenfoot.mouseClicked(start)){
removeObject(g1);
removeObject(g2);
removeObject(g3);
}
