Step 5: Hard Target Hit Message/Score/Reset

Goal:


The code for the Hard Target is very similar to the Easy Target and the Medium Target code except for the score and the X and Y positions!

Steps:

    1. Click on the “Hard Target” sprite
    2. From Events, place a when I receive block and add a new message called “HardScored!
    3. From Looks, place a hide block
    4. From Variables, place a change Score: by 5 block
    5. From Motion, place a go to X: -220 Y: -180 block
    6. From Control, place a repeat block
    7. From Operators, place a pick random 25 to 75 block and place it inside the repeat block
    8. From Motion place a change x by 5 block
    9. From Motion place a set y to 150 block and place it outside the repeat block
    10. From Looks, place a show block.

Code: