Platformer wall handling at marginal angles

Get help using Construct 2

Post » Tue Oct 15, 2013 1:10 pm

@GeometriX the player will also vibrate when pushing against non-flat walls, and it doesn't actually fix the problem anyway :P
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Tue Oct 15, 2013 4:42 pm

It definitely prevents climbing. Getting stuck under overhanging ledges would just require a bit more fiddling of that same concept, I'd think (checking on which side of the player the wall is, then check that wall's angle, and check if the player is jumping or attempting to).

Here's a capx for a more refined version of what I suggested before. The only thing that doesn't look great is if the player stands inside an overhang and mashes jump while holding in the direction key against the wall, which is pretty atypical player behaviour anyway. You can always extend the push by a few more pixels to alleviate this, but it depends on the animations you've got and how twitchy that'll look. If the player lets go of the direction key while pressing jump, it'll look great, though.GeometriX2013-10-15 17:11:10
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Previous

Return to How do I....?

Who is online

Users browsing this forum: ketramtu18, Yahoo [Bot] and 8 guests