Step 4: Easy Target Reset

Goal:


Let’s start coding the easy target in the game.

We need to set it’s position on the game screen every time the game is reset.

We will also place forever loop that will be used in the next step.

Steps:

  1. Click on the “Easy Target” sprite
  2. From Events, place a When flag clicked block
  3. From Motion, place a set y to block. Change the number to -15.
  4. From Looks, place a show block
  5. From Control, place a forever block

Code:



Click to replay