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

2014/2/24

I need help

xxX_Muffin.man_Xxx xxX_Muffin.man_Xxx

2014/2/24

#
I have used ... (Greenfoot.mouseClicked (this)) ... before, but I would like to know if there is a way I can do the same thing from the World What I'm trying to do is have icons that when one is clicked, new icons (actors) will be added and others destroyed.
xxX_Muffin.man_Xxx xxX_Muffin.man_Xxx

2014/2/24

#
Is there something like (Greenfoot.mouseClicked (actor name))
danpost danpost

2014/2/24

#
Please refer to the Greenfoot class API, particularly this.
Pointifix Pointifix

2014/2/24

#
you have to define the actor name Muffin.man. maybe you get the actor name via a command in the Actor class documentation (like getOneIntersectiongObject and so on) or you define it like MyObjectClassName variable = new MyObjectClassName(); and then create this object with this variable and later you can get the object via this variable
You need to login to post a reply.