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

2021/6/2

setImage invisible

BlueHand BlueHand

2021/6/2

#
How do you use setImage(); to make an object invisible? Asking this because I don’t want my class to have an image, but Greenfoot makes image less objects look like feet.
Roshan123 Roshan123

2021/6/2

#
Use getImage().setTransperency(int);
BlueHand BlueHand

2021/6/2

#
What is int supposed to be?
Gbasire Gbasire

2021/6/2

#
you can do two things : 1 : getImage().setTransparency(0); this will just make the image opacity to 0 2 : setImage((GreenfootImage)null); this will set a null image, completely blank
You need to login to post a reply.