Goal:
We need a way to restart our game whenever we want. The best way to do that is to sense if you touch the image of Pikachu with your finger.
This will re-activate the pokeball and give pikachu full health again.
Steps:
- From Pikachu, place a Touch block.
- From Control, place a IF/THEN block inside of the Touched block.
- From Logic, attach a NOT block to the IF portion of the IF/THEN block.
- From Pokeball, attach an Enabled block to the NOT block.
- From Pokeball, place a set Pokeball.Enabled block inside of the THEN portion of the IF/THEN block.
- From Logic, attach a true block to the set Pokeball.Enabled block.
- From Variables, place a set global health block.
- From Math, place a 0(zero) block and set it to 100.