At the end of this lesson students will be able to:
What do you enjoy most about video games?
Yes. One of the best things about video games is being able to interact with the objects on the screen by using some sort of input device such as a controller, wand or mouse. Often when we interact with an object (or actor) they move, disappear, make a sound or change their appearance don't they?
In this lesson we're going to learn how to make actors disappear when you click on them and then reappear in random locations. We're also going to learn how to program actors to make a sound when you click on them and have them change their appearance when they reappear.
Let me show you the coding blocks we’re going to be using in this lesson.
The blocks we will be learning about in this lesson are 'Show', 'Hide', 'Goto X Y', 'Pick Random', 'When actor clicked'.
This DIY project completes the monster clicking game. Your students will have a fun, silly game after they follow the instructions.
The “hide” and “show” effects are coming in handy now, since the monster changes costumes only while it’s not being displayed!
One idea for improving this project is that you could work with your students on implementing a click counter for keeping track of your score.
In this puzzle we need to program the bombs to knock down the wall so the knight and Valkyrie can get through.
What block should you use to make the cannonball launch when clicked?
Yes. It's the 'when actor clicked' block that should be used for each cannonball actor. Are there any questions?
What are the x, y coordinates for bomb 1 and 2?
Yes. Yes the 'goto x y' block should be set to x,300; y, 200?
Now it's time to create your own Hide and Seek game. Read the instructions and watch the completed sample then click the orange button at the bottom of each instruction page to move to the next step.
When you have successfully completed the Hide and Seek project, save your work and take the quiz. If you had any problems with the quiz go back and review the module you had difficulty with.
In this lesson we learned how to hide and show actors. We also learned how to make actors appear in a new locations as well as play sounds and change their appearances when clicked.
How did you enjoy learning how to program actors to disappear when clicked? Wasn't it cool how they changed their appearance and reappeared in new locations?
UK equivalent grade/class - Year 7 +
Key Stage 2
design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
use sequence, selection, and repetition in programs; work with variables and various forms of input and output
use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
Key Stage 3
design, use and evaluate computational abstractions that model the state and behaviour of real-world problems and physical systems
understand several key algorithms that reflect computational thinking (for example, ones for sorting and searching); use logical reasoning to compare the utility of alternative algorithms for the same problem
use two or more programming languages, at least one of which is textual, to solve a variety of computational problems; make appropriate use of data structures(for example, lists, tables or arrays); design and develop modular programs that use procedures or functions
understand simple Boolean logic (for example, AND, OR and NOT) and some of its uses in circuits and programming; understand how numbers can be represented in binary, and be able to carry out simple operations on binary numbers (for example, binary addition, and conversion between binary and decimal)