How do I make tiles from tilemaps transparent

Just started using Construct 2? Post your questions here

Post » Wed Sep 23, 2015 6:49 pm

I've been searching around for some time now, trying to find a solution to how I can make tiles in the tilemap transparent. The tilemap I downloaded to test how they work has a white background (others with a green background), with tiles side-by-side, but when I enter a few of the tiles on top of my background image (in a different layer), I can't get the white background away from the edges.

Here's an example of how it looks like now:
Image



I'm trying to make my first platformer game, and what I need is to have the tile work as the platforms that I jump around on, while the background makes the scenery for the level.
B
9
S
2
Posts: 9
Reputation: 676

Post » Thu Sep 24, 2015 1:47 pm

have a look at the x and y spacing in the tilemap properties
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Fri Sep 25, 2015 7:23 am

Yeah, actually, I tried with a different tilemap, and it was much easier to remove the white spacing from that one by using the x and y spacing in the properties of the tilemap. For the one in the image above, I just couldn't get it right, though. But that's fine - I've just switched to a different tilemap.

Thanks for the help - I got it working now :)
B
9
S
2
Posts: 9
Reputation: 676

Post » Fri Sep 25, 2015 8:17 am

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Fri Oct 02, 2015 12:24 pm

Open it in an Imageeditor (Photoshop, Gimp, whatever), select the white background color (in most programs are selection tools that work like the fill tool, select every pixel of the same color). After deleting the white area it should be transparent. Save the Image in .PNG or any Format that supports transparency.
Replace the Image in Construct with the new one and *BAM* transparent Background. ^^
B
20
S
7
G
2
Posts: 58
Reputation: 1,974


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests