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

2021/6/26

how do i remove an actor

Toni Toni

2021/6/26

#
hi, I just started to learn coding and i've got a problem. i wrote this, but the object doesn't get removed. what am i doing wrong?
public void die()

{
       getWorld().removeObject(this);
}
danpost danpost

2021/6/26

#
Are you calling die() from anywhere?
You need to login to post a reply.