Strange collisions.

Get help using Construct 2

Post » Tue Dec 29, 2015 10:38 pm

Hello, I have a strange collisions with my sprite and tilemap object.

As you can see in this image, the collision occurs even if the sprite is not touching the map tilemap.

Image

In this image you can see the collision mesh:

Image

Do not know why this is happening.
I would like if someone can help me understand how to get more accurate collisions, please.

https://dl.dropboxusercontent.com/u/60803633/testCollision.capx
The controls are:
Mouse buttons to rotate.
Key "up" to advance.
You can see how visibly collision occurs even though there is not.
B
28
S
11
G
18
Posts: 697
Reputation: 12,608

Post » Tue Dec 29, 2015 10:58 pm

Now I understand what happens.

It is that collisions are calculated with tiles occupied, not with tilemap chart.

One way to fix it is to apply to 8x8 size tileset, then build the map in that size.
B
28
S
11
G
18
Posts: 697
Reputation: 12,608

Post » Tue Dec 29, 2015 11:01 pm

The bounding box for that half-tile is still the full height. You need to edit it manually.
ImageImageImage
B
71
S
19
G
180
Posts: 3,483
Reputation: 103,187

Post » Tue Dec 29, 2015 11:08 pm

blackhornet wrote:The bounding box for that half-tile is still the full height. You need to edit it manually.


Thanks, did not know that you can edit the mesh of each tile.
B
28
S
11
G
18
Posts: 697
Reputation: 12,608


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, Moordhuis, RetroSpock, TRMG and 9 guests