Tile & character collisions

Get help using Construct 2

Post » Mon Aug 26, 2013 9:52 pm

Hello everyone! Im having a bit trouble to adjust the collisions for my hero. If i make the collision box smaller, he happens to overlap the tiles from side. The opposite - when i make the box larger, he stands in air when going from a platform. The hero sprite has his legs thiner than his torso which causes these problems. Is there any way to overcome this without actually redraw him and lose his unique look? :/
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Tue Aug 27, 2013 8:48 am

Double click on the character object, select 'Set Collision Polygon' on the bottom left bar. You can then adjust the collision on the outside of the character. Right click on a node and 'Add Point' to add in more vertices then you can create collision that is more in line with the shape of the character (at the moment I assume it is just a box)
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Tue Aug 27, 2013 6:58 pm

Plinkie i tried to add points to have the colision shape very closely to the actual sprite but the problem then is, when he jumps he get stuck sometimes in the middle of a platform:/. The platform collisions are box-like shaped so just 90degrer angles so this shouldnt cause him to hang:/
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Tue Aug 27, 2013 7:10 pm

Could not really say without the .capx but I would stay away from creating sharp edges, make sure the collision is correctly lined up. Also make sure the collision is correct on the platforms you're standing on
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Tue Aug 27, 2013 7:19 pm

Create a separate box/rectangle object to handle movements & collisions. The player sprites should be purely cosmetic.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770


Return to How do I....?

Who is online

Users browsing this forum: datiel12, tarek2 and 53 guests