Hello all,
I am trying to make a game when you click on one of the objects that are walking around it "kills" it. I was wondering how would you go about writing the code for the mouse clicking and killing the object.
Thanks!
public void act() { if (Greenfoot.mouseClicked(this)) { getWorld().removeObject(this); } }