Step 18: Player Lands on Platform Code

Goal:


Now we need to code what happens when the player lands on top of the platform.

Steps:

  1. Find the block of code that contains all the code for our basic jump function.
  2. From Control, place an IF block.
  3. From Sensing, place a touching color block into the IF block.

Code: