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
RynoCoder
wrote ...
2018/2/5
Deleting Another Actor
RynoCoder
2018/2/5
#
I am trying to delete an actor from the world when another actor goes into a certain area. How do I do this? Thanks!
danpost
2018/2/5
#
If after the deletion, no more of that type actor are in the world, then use 'getWorld().removeObjects(getWorld().getObjects(CLASSNAME.class));', where CLASSNAME is the type of actor to be deleted.
You need to login to post a reply.
X