Coding · Grade 4
Coordinates and Game Events
Fourth graders describe and change a game character's position with x and y, program arrow-key events that move it, add boundary checks that keep it on the stage, and detect when two characters meet (same x and same y) to react with a score or message.
- 4 lessons
- About 85 minutes
- Coordinates and events check: 8 questions
- Ways to answer: choose an answer, put code in order, trace code, plot points, highlight a text and match pairs
What learners will discover
- Describe a character's position with x and y, and predict changes from set and change blocks.
- Program and trace key events that move a character by changing x and y.
- Keep a character on the stage with boundary checks after each move.
- Detect when two characters meet (same x and same y) and react.
Lessons
-
x and y on the stage 5 steps3 practiceabout 16 min
-
Moving with key events 5 steps3 practiceabout 16 min
-
Stay on the stage 5 steps3 practiceabout 16 min
-
When characters meet 5 steps3 practiceabout 16 min
-
Coordinates and events check 8 questions at the end
Keep exploring
Games to practice with
- Robot RoutesSnap together arrow, repeat and dance blocks to guide Bolt the robot home.
- Bug DetectiveA robot program almost works. Run it, spot the buggy block, and fix it.
- Sorting FactoryTurn a work order into if/else rules and watch the conveyor sort every item.
More 4th grade coding
- 4th Grade Coding Games5 games to play free
- 4th Grade Coding Worksheets10 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read