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
Blight
wrote ...
2012/1/20
Check if actor is in the world
Blight
2012/1/20
#
Hi, How do I check if an actor is in the world? Thanks in advance.
Builderboy2005
2012/1/20
#
if(getWorld()!=null)
Is the easiest way. getWorld() return null if the Actor is not in the world, and returns non null otherwise!
You need to login to post a reply.
X