I am trying to make a start screen where you are able to change the image of the Actor. But the code for the image change is in the start screen world and the code for the actor is in the actor itself. Is there a way to change the image of the actor through the start screen world?
Code from the world \/
if (Greenfoot.isKeyDown("1"))
Greenfoot.setWorld(new MyWorld());
if (Greenfoot.isKeyDown("2"))
Greenfoot.setWorld(new MyWorld());
if (Greenfoot.isKeyDown("3"))
Greenfoot.setWorld(new MyWorld());
if (Greenfoot.isKeyDown("4"))
Greenfoot.setWorld(new MyWorld());