Goal:
When the game is restarted we want the Easy Target to respawn in a different spot every time.
We can do this in our code by choosing a random number between 25 and 75 and then move the target to the right that many times before it reappears.
Steps:
- Stay on the “Easy Target” sprite.
- From Control, place a repeat block.
- From Operators, find a pick random 1 to 10 block and place it inside the repeat block.
- Change the numbers to 25 and 75.
- From Motion, place a change x by block and set the number to 5.
- From Motion, find a set y to block and place it outside of the repeat block and set the number to -15.
- From Looks, place a next costume block.
- From Looks, place a show block.