Tiles Collision question...

Discussion and feedback on Construct 2

Post » Tue Sep 16, 2014 11:35 pm

Is there a way to make tiles from a unique image?
I have this image: Image
I want to know if there's a way to make the tiles solids and leave the transparent parts as "blank" enabling the character to move through it..
I already tried tilemaps but they are too inaccurate..
Aby idea?
B
12
S
3
G
1
Posts: 80
Reputation: 2,109

Post » Tue Sep 16, 2014 11:39 pm

Actually, tiles are perfect for this. You can edit the collison polygon for each tile. And if the tileset has the solid behabiour everything is solid, except for the blank spaces.
B
37
S
5
G
2
Posts: 46
Reputation: 3,854

Post » Tue Sep 16, 2014 11:40 pm

CleitonEldron wrote:Actually, tiles are perfect for this. You can edit the collison polygon for each tile. And if the tileset has the solid behabiour everything is solid, except for the blank spaces.

... The problem is that this is a unique image! And any of the scirra options (sprite, tiledbackground or tilemap) worked... Understood?
B
12
S
3
G
1
Posts: 80
Reputation: 2,109

Post » Tue Sep 16, 2014 11:43 pm

I did. The graphics are very good, as they are repeted you should turn them in a tileset, it will be easeier for you, veen for edit and level design it will be a breeze. Or you can do a layer underneath and fill it with a solid tiled background on the collision areas.
B
37
S
5
G
2
Posts: 46
Reputation: 3,854

Post » Tue Sep 16, 2014 11:44 pm

You shouldn't use giant images like that anyway. Instead use one tilemap for the tiles and another for collisions.
Image
B
242
S
29
G
13
Posts: 1,787
Reputation: 18,685

Post » Tue Sep 16, 2014 11:51 pm

Tokinsom wrote:You shouldn't use giant images like that anyway. Instead use one tilemap for the tiles and another for collisions.

Can you explain it better please?
B
12
S
3
G
1
Posts: 80
Reputation: 2,109

Post » Tue Sep 16, 2014 11:54 pm

Ashley wrote a blog apost about this https://www.scirra.com/blog/ashley/3/te ... ap-tidbits
Also, using large images is never a good idea.
B
37
S
5
G
2
Posts: 46
Reputation: 3,854


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests