Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Slick2D and Tiled Map Editor - Sprite Shadows


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Yamero   Members   -  Reputation: 103

Like
0Likes
Like

Posted 04 February 2013 - 10:15 PM

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

spriteshadows.PNG

 

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

treeShadows.PNG

 

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

Please help.

 



Sponsor:

#2 Jutaris   Members   -  Reputation: 478

Like
0Likes
Like

Posted 06 February 2013 - 02:48 PM

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.


My Site -- My Music  -- My Ramblings -- My Game

 Basic Flying Rules:Try to stay in the middle of the air. Do not go near the edges of it. The edges of the air can be recognized by the appearance of ground, buildings, sea, trees and interstellar space. It is much more difficult to fly there.

Come join us for some friendly game dev discussions over in XNA Chat!





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS