DoodleJump type gameplay, Unity 3D
Some people had questioned me how to jump through a platform, like in doodlejump.
The basic idea it’s that you change the layer of the player when he jumps and change it back when he has negative Y velocity. Demo The code is pretty basic:
After that, go to Edit -> Project Settings -> Physics 2D and uncheck the collision between PlayerInAir and Ground layers.