Step 15: Player Reset Animation 1

Goal:


When the player sprite touches the spike OR the side of the platform, we want to run the restart code.

Then we need to change the player sprite’s costume to the star. The star is the costume that will indicate to the player that they have been hit.

Steps:

  1. From Events, place a broadcast block, and set it to reset.
  2. From Looks, place a switch costume to block and set it to star.

Code: