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
29
S
12
G
20
Posts: 759
Reputation: 13,861

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
29
S
12
G
20
Posts: 759
Reputation: 13,861

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
21
G
222
Posts: 3,652
Reputation: 124,733

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
29
S
12
G
20
Posts: 759
Reputation: 13,861


Return to How do I....?

Who is online

Users browsing this forum: duke2704, megatronx, sebrosen and 2 guests