Jump to content


Photo

TW3SpriteSheet and transparency


  • Please log in to reply
3 replies to this topic

#1 JASONREID

JASONREID
  • Members
  • 17 posts

Posted 28 May 2013 - 03:29 PM

Hi

I'm Using some TW3spritesheets and layering images on top of each other.

How can I set the transparency of a sprite.



Example


#2 Jørn E. Angeltveit

Jørn E. Angeltveit
  • Administrators
  • 297 posts
  • LocationNorway

Posted 28 May 2013 - 04:12 PM

Take a look at the "ZenSky" and the "Spartacus" demos.

These use transparent sprites...

#3 JASONREID

JASONREID
  • Members
  • 17 posts

Posted 28 May 2013 - 05:00 PM

Hi Jorn

Thanks for the reply, I want to use the Spritesheet for now.

I solved it by removing the background in Paint.net.


#4 Eric

Eric
  • Moderators
  • 96 posts

Posted 28 May 2013 - 05:06 PM

The transparency is taken from the alpha channel, so you need an image editor that supports alpha channel and save as 32bit PNG (jpeg doesn't support alpha channel transparency)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users