Jump to content
  • Advertisement
Sign in to follow this  

Slick2D and Tiled Map Editor - Sprite Shadows

This topic is 2081 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Just started learning Java a few weeks ago and got into Slick2D to get me started on creating some games.

I started using some free sprites from this site and loaded then into Tiled Map Editor. everything worked correctly expect for the shadows.

At the moment they look like this



Tiled Map Editor allows me to remove the blue background to make it transparent but I don't know how to remove the pink.

On the site the author talks a bit about the shadows but I didn't understand much.

They are supposed to look like this when used correctly



I tired looking through the slick2d javadoc and even googled the problem for about 2 hours and couldn't find a thing.

Please help.


Share this post

Link to post
Share on other sites

That image appears to be using multiple colour keys for transparency.


Generally, that pink is used as a transparency colour key and while I'm sure it's possible, I'm not immediately aware of how to do colour key based partial transparency.

If your library supports alpha transparency, I'd suggest going that route instead.


Should be pretty simple to replace the blue/pink with transparent, the gray-pink with semi-transparent black and just use that.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!