Step 16: Respawn Code

Goal:


Let’s code the broadcast message “Destroyed1”.

This message will make the game wait five seconds before creating another Asteroid clone.

Steps:

  1. From Events, place a when I receive block and set it to Destroyed1.
  2. From Control, place a wait block and set it to 5 seconds.
  3. From Control, place a create clone of myself block.

Code: