Step 7: Apple Eaten Code


We now need to create a new message that will run code when the player sprite touches and “eats” the apple.

This message will delete the apple and let the player get points for it to make it look like the player is collecting the apple in the game.


  1. From Events, place a when I receive block.
  2. Create a new message called “eaten”.
  3. From Control, place a delete this clone block.