Hello,
This is the scenario http://www.greenfoot.org/scenarios/20750
I want when a player selects a class from the seconds,to create an new world and start playing. If we make it work,where will the games code be placed?On my world? Thanks!
if(Greenfoot.mouseClicked(this))
{
Greenfoot.setWorld(new MyWorld());
getWorld().addObject(new Pressed(), 750, 400);
}
if(Greenfoot.mouseClicked(this))
{
Greenfoot.setWorld(new MyWorld());
getWorld().addObject(new Pressed(), 750, 400);
}