Step 6: Adding the Fourth Rating

Goal:


Let’s add the fourth rating when the power is greater than 160.

Steps:

  1. Select the “Sprite4” sprite, on here add the following code
  2. From Events place a “when I receive” block
  3. Change the message to be “PumpkinSmashed!
  4. From Control place an if then block
  5. From Operators place a > (greater than) block inside the if then block
  6. From Data place “Power:” inside the left side of the < block
  7. Type in 160 on the right side of the < block
  8. From Looks place a “show” block inside the if then block

After this step the game is now done!

Feel free to play with it and see how well you can do!

See if you can add anything else to it! You can try adding your own rating to it, changing what the other ratings say, or even how hard it is to get a certain rating. There are a lot of different things you can do!

Code: