Hello, I am trying to make a start screen for my project and i want to click anywhere on it and then go to another screen, but it's not working. It worked a few hours ago, but now, I don't know what's happening.
import greenfoot.*; public class StartScr extends World { public StartScr() { super(600, 400, 1); if(Greenfoot.mouseClicked(this)) { Greenfoot.setWorld(new StartScreen2()); } } }