Unit 1 Lab 5
Follow the Leader
In many programs, the visual elements on the screen need to interact—follow each other, avoid each other, react a certain way when they meet each other, etc.
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.
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.
Sprite Following the Mouse
Sprite Following the Mouse
Sprite Following a Sprite
Sprite Following a Sprite
Vocabulary
Vocabulary
Click each word to view the definition.
Code Segment
Code Segment
A code segment is a sequence of connected instructions that carry out a purposeful action, such as the one pictured on the left, which animates a conversation. The instructions in the code segment are carried out in order, from top to bottom.