Jump to content

Problem with transparency in tilemap


claytron
 Share

Recommended Posts

So I loaded a tilemap into my phaser game. They are based around 32x32 pixel blocks. I have some tiles that don't use the full 32x32 size, and when rendered in Phaser it shows part of it as white instead of transparent.

 

Is there a way to fix this? Or do I just need to make all my tiles 32x32?

Link to comment
Share on other sites

So even though the tileset is a png they won't be transparent?

What do you mean edit them in an art package? Does that mean I need to do something in between making the map and Tiled and loading it into my Phaser game?

Thanks for the reply. Sorry if this has been covered. I couldn't find a solution. 

Link to comment
Share on other sites

The PNG above (the rats one) has a transparent background. It has been saved out correctly as a PNG-24. The tileset PNG a few posts above that has a white background.

Open the tileset PNG in to Photoshop and color pick the background. It's solid white. It has no transparency at all. Fix that, and it'll display properly in-game.

Photoshop_2017-11-14_14-58-56.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...