Step 13: Pokeball Movement

Goal:


One last thing and our app will be complete!

We need to program our pokeball to bounce around the screen and move towards Pikachu!

Steps:

  1. From Pokeball, place an EdgeReached block.
  2. From Pokeball, place a PointInDirection block.
  3. From Pikachu, attach a Pikachu.X block to the x slot of the PointInDirection block.
  4. From Pikachu, attach a Pikachu.Y block to the y slot of the PointInDirection block.

Code: