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

2012/6/24

getting the world.

gusbus123 gusbus123

2012/6/24

#
how would u get what world we are currently in? I have one button that i want to check whether it is in singlePlayer world or the multiplayer world and act upon what is given
erdelf erdelf

2012/6/24

#
World world = getWorld();
if(world instanceof Singleplayer)
{

} else if(world instanceof Multiplayer)
{

}
try it with this
gusbus123 gusbus123

2012/6/24

#
k thx yer it works
You need to login to post a reply.