So I have a moving platform in my project, it moves up and down on a positional tween, the problem I’m having is that whenever I jump while on it, I will fall through, I’m sure this is because since im jumping and the platform is moving up at the same time maybe somehow the collisions are being funky but Im not entirely sure what I could change to get this functional. Does anybody have a better idea of how to implement this/how to fix what I have. The hitbox of the player is highlighted in this clip and the collision box of the platform is half of the visible object (so it looks like you are standing on the platform not just on top.)
Link to clip - This is an unlisted youtube clip by the way
i just paste it from discord.Yesterday’s case:
That means it have more to do with state of player
You have 2 things with jump trough platforms
1 - allow to go down (allows you to stand on it and while that go down trough it)
2 - detect when going down (DO NOT enable platform solid state when you are going so you don’t end up pushed off the platform while being inside platform)
I guess detection isn’t perfect or the way it is trying to detect it makes it confuse states and so we get bug
I would simply disable jump trough DOWN to all platform that are in some distnace from player when player is NOT on floor (NOT ON FLOOR and not jumping/falling)
And enable it back as soon as player is on floor this way for at last one frame player will be held on platform landing on it always
I think it will need a little bit of tweaking and maybe disabling whole behavior for platform
But totally doable