I'm trying to use Greenfoot.mouseClicked and itisnt working. I have a boolean that is set to false by default, and when you click on the object it should set the start boolean to true. All of this is in an actor called ball. I have added action to the world same with ball. I'm not sure why it isn't working. This is a simple idea.
if(Greenfoot.mouseClicked(Action.class))
start = true;

