Player sprite falling through platform when at angle

Just started using Construct 2? Post your questions here

Post » Sun Jun 25, 2017 4:34 pm

I have a player sprite with the 8Direction & platform behavior, and "floors" which are tiled backgrounds with the jumpthru behavior. Everything works fine when the floors are at a 0 angle. The player can walk over them and jumpthru them. On falling the player lands on the floors as expected.

But when I place the floor at a non-zero angle (to act as a staircase), on falling the player does not land on the angled floor but falls through it and I cannot understand why. In addition if the player is moving too fast, he will also fall through the angled floor.

I've tried adding a detection sprite under the player sprite and changing the angle of the player when he jumps, but this doesn't seem to help. The only option that works is to give angled floors the solid behavior, but this prevents the jumpthru behavior from working.

Any suggestions appreciated.
B
6
S
2
Posts: 6
Reputation: 526

Post » Sun Jun 25, 2017 10:26 pm

Hi,

I had a similar problem in the past and I believe this is because you are using the GRAPHICS of the player as the player with weird collision lines.

A better practice is to use an invisible sprite with PERFECT box or circle collision lines and PIN the GRAPHICS player on this.

You can also double check that your floor's collision lines are perfect, because any weird angles create possibilities of bugs.

Good luck
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.

My games & gaming portal = DolyGames

If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.

Cheers,

COSMOS
B
20
S
9
G
1
Posts: 75
Reputation: 2,152


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest