GRADE 5 · COMPUTING · UNIT 1 · LESSON 1.19
Computational thinking and programming
Build a two-sprite signal challenge
Create two sprites: a green Button at (-100, 0) and a blue Beacon at (100, 0). Use shared variables Count and Busy. Start both at 0.
LET’S LOOK, THINK AND TRY
Build a two-sprite signal challenge
Create two sprites: a green Button at (-100, 0) and a blue Beacon at (100, 0). Use shared variables Count and Busy. Start both at 0.
- Build a two-sprite signal challenge.
- Trace an interaction and test the expected output.

Explore the clues
Tap one card to find out more.
Understand the idea
Create two sprites: a green Button at (-100, 0) and a blue Beacon at (100, 0). Use shared variables Count and Busy. Start both at 0. Clicking Button sends Signal. Beacon counts each accepted signal. At Count = 3, it says Challenge complete and stops the game. Busy prevents a second click being accepted while the first is being handled.
Read the complete shared-state project
Set up the two-object model
Count: 0 Busy: 0
| Button | Beacon |
|---|---|
| (-100, 0) | (100, 0) |
The layout is a simplified project plan, not a screenshot. Draw or paint a Button
sprite and a Beacon sprite, name them exactly and place them as shown. Use a plain
backdrop. Create Count and Busy for all sprites; show Count's monitor. No
costumes, sounds or downloaded files are required.
Build the start and click scripts
Stage: start scriptWHEN green flag clickedSET Count TO 0SET Busy TO 0BROADCAST Reset AND WAIT
Button: click scriptWHEN this sprite clickedIF Busy = 0 THENSET Busy TO 1BROADCAST Signal AND WAITEND IF
Translate these complete pseudocode guides into Scratch blocks. Use broadcast
and wait, which waits for matching receiver scripts to finish before the sender
continues. Busy = 1 means a click is already being handled. Start the green flag
before clicking Button.
Build the Beacon receiver scripts
Reset receiverWHEN I RECEIVE ResetSAY Ready
Signal receiverWHEN I RECEIVE SignalCHANGE Count BY 1SAY Count FOR 1 SECONDIF Count = 3 THENSAY Challenge complete FOR 1
SECOND
STOP ALLEND IFSET Busy TO 0
Both scripts belong to Beacon. In Scratch use when I receive Events blocks,change Count by, say, if then and stop all. The SAY Count block uses the orange
Count reporter. The one-second message makes each signal visible. Beacon clears
Busy at the end, even if a rapid click restarts the waiting Button script.
Explain with evidence
Keep the same two objects and all four scripts. Change the target to 4 accepted signals. Everything else stays the same, including Count starting at 0 and the Busy guard.

Think safely with Paxa!
Use the supplied examples and a paper simulation first. Ask a grown-up before using a device or creating an online account. Never share passwords or private information.
Use the supplied code, labels and records to explain your answer.
Our Unit 1 learning path
- Lesson 1.1: Meet variables and values
- Lesson 1.2: Trace variables and a robot route
- Lesson 1.3: Build a shared game counter
- Lesson 1.4: Debug and test variable programs
- Lesson 1.5: Calculate with stored numbers
- Lesson 1.6: Trace inputs and comparisons
- Lesson 1.7: Build and test a calculator
- Lesson 1.8: Debug calculator operations
- Lesson 1.9: Choose a path with selection
- Lesson 1.10: Trace branches on paper
- Lesson 1.11: Control a sprite with key conditions
- Lesson 1.12: Check branches and repair control bugs
- Lesson 1.13: Break a problem into clear parts
- Lesson 1.14: Compare and trace algorithms
- Lesson 1.15: Build a program from an outline
- Lesson 1.16: Test and improve a solution plan
- Lesson 1.17: Objects, behaviours and messages
- Lesson 1.18: Trace contacts and message effects
- Lesson 1.19: Build a two-sprite signal challenge
- Lesson 1.20: Debug interactions between objects
- Lesson 1.21: Meet the program-making team
- Lesson 1.22: Plan a useful program with clear criteria
- Lesson 1.23: Build and test a friendly four-question quiz
- Lesson 1.24: Evaluate, refine and retest a program
- Lesson 1.25: Inputs, conditions and LED outputs
- Lesson 1.26: Trace physical-device decisions on paper
- Lesson 1.27: Build the two-player Signal Match game
- Lesson 1.28: Find faults and test device programs
- Lesson 1.29: Paxa Mystery Number
For grown-ups: using this lesson
Explore the computing idea together, then try the workbook. Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose “Mark lesson finished” when ready. Optional account progress saves position and completion; save personal workbook responses before leaving. Use fictional data; do not share names, passwords or other private information.
2. Fill in your workbook
Read each page’s explanation and use its own diagrams, labels and supplied records. Choose, write or draw. Use Answer list for larger controls.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 6 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.
Student worksheet only · PDF · 8.5 MiB · No answer key included
TRY FIRST, THEN CHECK TOGETHER
Download the student worksheet →4. Answers & guidance
Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.
Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.
Show answers for all 6 worksheets
Worksheet 1
- Question 1: Which sprite sends Signal? b) Button
- Question 2: Which shared variable counts accepted signals? c) Count
- Question 3: What is the target count? c) 3
Worksheet 2
- Question 4: Why must Count be available to all sprites? b) The project shares one count
- Question 5: What is the starting Busy value? 0 / zero
Worksheet 3
- Question 6: Which instruction prevents accepting another click while busy? c) SET Busy TO 1
- Question 7: When can the sender continue after broadcast and wait? c) After receiver scripts finish
Worksheet 4
- Question 8: What happens when Count reaches 3? b) Game says complete and stops
Worksheet 5
- Question 9: After one accepted signal from Count 0, what is Count? 1 / one
- Question 10: What is Count after two accepted clicks from a fresh start? 2 / two
- Question 11: What is Count immediately after restarting with the flag? 0 / zero
- Question 12: What should a click do while Busy is 1? a) Be ignored by the guarded body
Worksheet 6
- Question 13: Identify the exact condition to change and give the expected result after three and four accepted clicks. Change Beacon condition from Count=3 to Count=4. After 3 accepted clicks Count is 3 and game continues; after 4, Count is 4, Challenge complete for 1 second, then stop all. Initial reset remains 0. Grown-up review.
- Question 14: Explain why a fresh game must reset both Count and Busy. Count must start at 0 and Busy at 0 so a click can be accepted. At completion stop all occurs before the receiver clears Busy; the start script restores both values. Accept concise explanation of clean starting state. Grown-up review.
Curriculum & workbook reference
- Cambridge Primary Computing Learner’s Book 5 — pages 76–90
- PaxaKids Grade 5 Computing Lesson 1.19: Build a two-sprite signal challenge — pages 1–6
Computing for your homeschool day
Explore Object interaction with this free Grade 5 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.
Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.
Understand your results
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.
For curriculum background, visit the Cambridge Primary Computing overview.
The book pages identify the related computing topic. The teaching and workbook activities are original PaxaKids learning materials.
