In the actors act() method, I am trying to make it's actions differ, depending on the world it's in. I know why this doesn't work but how do I only return the name of the world, so I can compare? I only want the actor to perform certain actions if it's on a particular world.
if (Greenfoot.mouseClicked(this)) { if (this.getWorld() == Room11) { //further actions} }