Goal:
With our pokeball reset, let’s tell it how much damage to do to the pikachu.
We are also going to change our label so that it displays how much health we still have.
Steps:
- From Variables, place an initialize global somewhere on the screen and call it Damage.
- From Math, attach a 0(zero) block to the end of the initialize global block and set it to 5.
- From Variables, place a set global health block.
- From Math, attach a -(minus) block to the end of the set global health block.
- From Variables, place a get health block in the left side of the -(minus) block.
- From Variables, place a get Damage block in the right side of the -(minus) block.
- From Health, place a set Health.text block.
- From Variables, attach a get health block to the end of the Health.text block.