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
Matt
wrote ...
2012/5/28
Removing an actor on Click :)
Matt
2012/5/28
#
I want to remove an actor on click, the actor is called "WIN". How do I do this?
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.
X