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

2020/4/23

Is there a way to hide Greenfoot icon?

greenfish greenfish

2020/4/23

#
In my World i have these Greenfoot icons. These are actors with no image, there will appear a text. is there a way to hide these greenfoot icons before?
danpost danpost

2020/4/23

#
greenfish wrote...
In my World i have these Greenfoot icons. These are actors with no image, there will appear a text. is there a way to hide these greenfoot icons before?
Add a constructor to each of those actor classes to either set a transparent image to the actor or to remove the greenfoot icon image from the actor. Example 1:
1
2
3
4
public Text()
{
    setImage(new GreenfootImage(1, 1));
}
Example 2:
1
2
3
4
public Text()
{
    setImage((GreenfootImage)null);
}
greenfish greenfish

2020/4/23

#
thank you! it works.
You need to login to post a reply.