Step 11: Player Enemy Collision Code 1


Let’s set up the code for what happens when the player runs into either the side of the platform or the spikes.


  1. Select the sprite called player.
  2. From Events, place a when green flagged click block.
  3. From Control, place a forever block.
  4. From Control, place an IF block.