In this lab, you will program two sprites. One sprite will follow your mouse. The other sprite will chase the first. When they meet, they will have a short conversation.
On this page, you will program the first sprite to follow your mouse and program the second sprite to point in the direction of the first sprite in preparation for following it.
The block at the top of the script is called a hat block. Its shape emphasizes that it can be used only at the beginning of a script. Hat blocks don't say what the script should do; they say when it should do it. Hat blocks say what event should start the script running. In this case, the script starts when the green flag button is clicked.
To stop this script, click the red stop sign:
point towards
block to make it point towards Sprite. The animation below shows how.
forever
. Whenclicked
, so both scripts run when is clicked.