Step 20: Set Falling Speed on Platform

Goal:


Our fall speed is still on since the player will be at a height greater than the starting height if he jumps onto the platform.

We need to prevent the player from falling when they are on top of a platform.

To do this, we just need to set our fall_speed variable to zero.

Steps:

  1. From Variables, place a set fall_speed block and set it to zero.
  2. From Motion, place a change y by block.
  3. From Variables, place a round fall_speed block into the change y by block.

Code: