Collision masks

For questions about using Classic.

Post » Mon Nov 12, 2012 11:15 pm

I'm having problems with collision masks and gravity in that even if there is an overlap of 1 pixel, the collision will stop the object from falling.


Here's the collision mask for the left edge of this level:

When the player jumps onto the left, he shouldn't stop, he should slide down... but this is what happens instead:

It's causing a bunch of problems, especially with the "wall to left" and "wall to right" conditions - even if the "wall" is just 1 pixel higher than the ground, things will bounce off it (as asked to do when the condition is met).

Any ideas how to deal with this?

Example of the problem in action:

[TUBE][/TUBE]djsubtronic2012-11-12 23:19:51
Posts: 20
Reputation: 340

Post » Tue Nov 13, 2012 3:07 am

You could use a separate object for the slope and make it solid. Then detect when the player is on the slope with "player is overlapping slope an offset (0,1)" and move the player off the slope with "player: set x to player.X+1" to make it slide.
Posts: 5,359
Reputation: 73,779

Post » Wed Nov 14, 2012 7:18 pm

Thank you. Not the ideal solution, but it does the job :D
Posts: 20
Reputation: 340

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests