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

2016/11/28

Image transparency and collisions.

MJBelmer MJBelmer

2016/11/28

#
When I use an image for a character sprite, the transparent outer of the sprite is still considered part of the image and used for collisions. Is there a way to not have this happen?
danpost danpost

2016/11/28

#
Remove all entirely transparent rows and columns pixels from the edges of the image. If you do not have a way to do that, download my Image Transparency Adder/Trimmer scenario and use it. All you need to is run the project, browse to select the image, load it and immediately save it. Any excess transparencies will be removed automatically.
MJBelmer MJBelmer

2016/11/28

#
Ahhh so my transparency was fine it's just that Greenfoot still wants to put the image in a box so you can't have a concave area that isn't detected as part of the object. I managed it better though by taking your advice and trimming all extra area that was transparent. Thank you!
You need to login to post a reply.