How to make a character jump through objects like in the mario games ( The game is in 2D)

Please Help i need to learn how to make a Character jump through the objects and land without falling like in the old mario games