This site requires JavaScript, please enable it in your browser!
Greenfoot back
marzukr
marzukr wrote ...

2011/12/25

Menu System

marzukr marzukr

2011/12/25

#
I'm new to java and I was wondering how I would impliment a menu system in my game, I want some thing like this I click and actor then the world changes
danpost danpost

2011/12/25

#
Do you mean?
if (Greenfoot.mouseClicked(this))
{
    Greenfoot.setWorld(world);  // the 'world' in the '()' is a reference to whatever world you want
}
marzukr marzukr

2011/12/26

#
Thanks, this really helped this would work for new levels right?
You need to login to post a reply.