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

2018/2/5

Deleting Another Actor

RynoCoder 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 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.