Personal following: I want to control the mouse in my game, but I can not. It aims to click a button (which I defined a class Pause), and when this button is pressed, the game (with Greenfoot.stop ()). Does anyone know how I can do this? Thank you.
public void act() { if (Greenfoot.mouseClicked(this)) { Greenfoot.stop(); } }