Help with falling through platform issue?

Get help using Construct 2

Post » Sat Nov 22, 2014 5:54 pm

I've been searching the forums for info on what may be causing this in my game and will continue to look but thought I'd post and see if one of you know exactly what's going on and can help me fix my issue.

I've some platforms that I want to connect and create inclines. See the attached capx (
FallIssue.capx
) and you can see a video of the issue here: adobitar.sytes.net/fallissue/.

Basically, may player falls through the places where two platforms come together.

Thanks in advance for your help! My first game is almost done, I can't wait to share it with y'all!
You do not have the required permissions to view the files attached to this post.
B
4
S
1
Posts: 5
Reputation: 262

Post » Sat Nov 22, 2014 7:09 pm

I'm guessing those platforms use the jump-thru behavior, and your character is using the platform behavior. I've ran into the same problem before. From my understanding, the issue is due to how the platform behavior is implemented- here's a response I got to another bug I had related to jump-thru behavior.. jumpthrough-behavior-bug_p839535?#p839535

What I would do is use an invisible sprite, about 2px by 2px, and give it the fall-thru behavior, and resize it so that one of them stretches across all of those sprites. That way there is no gaps/edges to cause this sort of bug.
Or, another thing you might want to try, which I haven't tried before, is to adjust the collision box of the character so that the corners look something like this - \_____/ .. instead of |____| .. That might help? but I never tried that.
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Sat Nov 22, 2014 10:00 pm

Yeah, I tried something similar to that at one point. I'm working with ladders also and thought that the flat landing fixed a similar problem but I'll investigate again. Thanks.

On the collision box, I'm using a player box and I already tried rounding the corners like you suggest; doesn't seem to help :(.
B
4
S
1
Posts: 5
Reputation: 262

Post » Sat Nov 22, 2014 10:37 pm

oh okay, I just checked out your capx. I didn't realize you were already stretching them out.
It looks like the issue is that the end of the ramp that slants down doesn't end below the flat platform, so the character won't know to step up onto it. If you tilt it down slightly so that the corner goes through the flat platform, then it works appropriately.
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Sun Nov 23, 2014 8:49 pm

Ah! Thanks! I actually just removed the flat bit and just used the angled piece all the way across for now but that's a good catch. I'll pull out an old save and try it out. Thanks!
B
4
S
1
Posts: 5
Reputation: 262


Return to How do I....?

Who is online

Users browsing this forum: DjowG, ramyaswetha and 7 guests