The Hedgehog stirs out of its sleep below the tree and ventures out to forage for food. Meanwhile a snake lurks in the long grass. Hedgehog and snake are unaware of each other until face-to-face when they both take fright. The snake coils up before slinking away. The hedgehog shrieks, curls up into the safety of a ball and returns to sleep in the safety of its nest.
As in part 1, we will use broadcasts to modularise the code into short rather than long scripts. Also we use invisible markers to set locations instead of x, y coordinates. You make a sprite in the Paint Editor consisting of a very small dot. Name it marker1. Code marker 1 with a short script, to mark the x, y locations of hedgehog and snake. Duplicate a few times and edit the copied scripts. Download the PDF from the shared Files location to get all the help you need. Keep safe.