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
Toni
wrote ...
2021/6/26
how do i remove an actor
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
2021/6/26
#
Are you calling
die()
from anywhere?
You need to login to post a reply.
X