Computing Technology 7–10 / Stage 5 Year 10
Scripting Simulations: Movement & NPCs
Lesson 7 · Producing & Implementing
Learning Intentions
- Write simulation scripts using Update(), Time.deltaTime and Transform.Translate to move objects independently of frame rate
- Implement an NPC patrol using branching (if/else) and iteration (while/for) — all three control structures in one script
- Use the GenAI workflow responsibly: pseudocode first, then prompt, then critically review and document changes
- Attach scripts to GameObjects and test simulation behaviour live in the Unity scene
Press Next ▶ or the → key to begin