Step 7: Coding Pikachu Game Over Message

Goal:


Now that our game can check what the current health of our pikachu is, we need to tell it to show a message when its health does reach zero.

Steps:

  1. From Notifier, place a ShowMessageDialog block inside of the THEN portion of the IF/THEN block.
  2. From Text, place an empty text box block in each of the three slots in the Notifier1.ShowMessageDialog block.
  3. Set the first text to “You Lost”.
  4. Set the second text to “Game Over”.
  5. Set the third text to “OK!”
  6. From Pokeball, place a set Pokeball.Enabled block.
  7. From Logic, attach a false block to the end of the set Pokeball.Enabled block.

Code: