Prevent fallthrough from falling through second platform

Get help using Construct 2

Post » Sun Sep 28, 2014 10:09 pm

When I fallthrough a platform, if the character is overlapping the platform while it hits another fallthrough platform, it continues to fall through that platform as well. How do I stop this so that the character only falls through the first platform?
B
43
S
19
G
65
Posts: 1,105
Reputation: 37,949

Post » Sun Sep 28, 2014 11:29 pm

Depends on how you are using/needing it to perform but I would just disable the platforms collisions for 1 or 2 seconds and then re-enable.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Mon Sep 29, 2014 2:02 am

That wouldn't fix the issue.

I use the fallthrough behavior on a tilemap so that each tile can be fallen through. If I have two floors separated by one tile, and the character is taller than one floor, then it'll continue to fall through both because it is waiting until the character isn't overlapping to reset the fallthrough.
So this is a bug with the fallthrough behavior in my opinion. You'd think it would have been designed to only take into account the bottom of the character, rather than the whole collision box.
I guess I'll post this in the bugs..
B
43
S
19
G
65
Posts: 1,105
Reputation: 37,949

Post » Mon Sep 29, 2014 4:40 am

Now I understand. Set the sprites origin point to the bottom of the image. That should fix the issue.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Mon Sep 29, 2014 5:39 am

I just tried what you suggested, but that doesn't fix the issue. It still falls through the second platform.
B
43
S
19
G
65
Posts: 1,105
Reputation: 37,949

Post » Mon Sep 29, 2014 6:26 am

I don't understand the question then. You'll need to post a capx or some sort of playable game.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Mon Sep 29, 2014 6:50 am

posted a capx here: jumpthrough-behavior-bug_t116561
B
43
S
19
G
65
Posts: 1,105
Reputation: 37,949


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, gumshoe2029, LaDestitute, OBLIVION, Solomon and 22 guests