How would I make a platform system for a 2D game?

How would I create a effect like SSBU, where when you jump on a platform you can go through it when jumping, but not back down? And then crouching, (pressing CTRL) would make you go back down through the platform?

1 Like

You can do this using collisions

1 Like

I achieved this in a project of mine by checking every frame if the character is either moving upwards (positive Y velocity) OR is pressing the key combo to jump down through a platform OR is halfway through a platform. If any of those were the case, make the platform nonsolid. Otherwise make it solid.

1 Like