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

2012/1/20

Check if actor is in the world

Blight Blight

2012/1/20

#
Hi, How do I check if an actor is in the world? Thanks in advance.
Builderboy2005 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.