I have 2 worlds cars and levels. Is it possible to show a new world when an actor from cars and levels has been clicked?
The flow of the game is get to choose a car then get to choose a difficulty of the game. How can i call the next world based on what the player has chosen on the car and the difficulty? suppose that they chose car a (cara) and then chose easy mode, how could i call the next world based on the players choice like car a and easy.
the class below is on actor easy.
i have only tried this but wont work
if (Greenfoot.mouseClicked(cara, this)) { Greenfoot.setWorld(new problem()); }