This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
CanYouHelpMe
wrote ...
2017/7/4
Switch the World
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
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.
X