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?
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.
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..
Develop games in your browser. Powerful, performant & highly capable.
Now I understand. Set the sprites origin point to the bottom of the image. That should fix the issue.
I just tried what you suggested, but that doesn't fix the issue. It still falls through the second platform.
I don't understand the question then. You'll need to post a capx or some sort of playable game.
posted a capx here: