Hey, I have a school project to do, so I want to make a menue where you can choose your character, so I've created some buttons in my world "character-selection". Now when you click on one of these buttons, they should add the object to the world "AllstarsWorld", but that doesn't work and I simply don't know how to write the code. I tried somethin like this in my Character1-button class;
But now there's the problem; cannot find symbol - variable getAllstarsWorld
public void act()
{
if(Greenfoot.mouseClicked(this))
{
getAllstarsWorld.addObject(new Character1(), 262, 662);
}
}


