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

2017/7/4

Switch the World

CanYouHelpMe CanYouHelpMe

2017/7/4

#
Hello guys, I want to switch the world, if an Object in my case called "OpenLift1", is passing a specific Y coordinate. I hope u can help me . I need a fast answer ty.
danpost danpost

2017/7/4

#
In act method of class of lift, you can use something like the following:
if (getY() >= someValue) // or '<='
{
    Greenfoot.setWorld(new NextWorld();
}
You need to login to post a reply.