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.
Posts: 11
Reputation: 668

Post » Sun Jun 25, 2017 10:26 pm


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.
Posts: 97
Reputation: 2,479

Return to Beginner's Questions

Who is online

Users browsing this forum: fbarraza28 and 2 guests