- Start the hero in the right place.
- Move the ground below and make it stay.
- Create a variable.
- Place this variable in a "change y" block at the bottom of the motion loop.
- Make the variable change by negative 1 if the hero is in the air, or set it to 0 if it's on the ground.