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

2012/5/28

Removing an actor on Click :)

Matt Matt

2012/5/28

#
I want to remove an actor on click, the actor is called "WIN". How do I do this?
SPower SPower

2012/5/28

#
In the act() methodo WIN, add this if statement:
if (Greenfoot.mouseClicked(this)) {
    getWorld().removeObject(this);
}
You need to login to post a reply.