Step 10: Restart Broadcast

Goal:


Now let’s code what happens when we need to restart the game.

Our restart broadcast message will have our player reset and have time to get ready before more enemies appear on screen.

Steps:

  1. From Events, place a when I receive block.
  2. Click the dropped down menu and click new message.
  3. In the window that appears type “reset”.
  4. From Control, place a delete this clone block.

Code: