Make a video sensing game
This challenge has been written by EU Code Week Team and is part of the EU CODE WEEK CHALLENGES.
Target Audience
- Teachers
- Students (10-14)
Experience
- Intermediate
Duration
- 1 hour
Recommended Materials
Purpose
- To code animated objects
- To develop understanding of how to control digital animation with physical movement
- To compose a song by mixing sound clips
Description
In this challenge you will create a simple game that uses a video camera as a sensor to detect motion, which means that you will be able to control your animation with physical movement. In this game, the task is to collect as many EU Code Week bubbles as possible in 30 seconds. Instead of collecting bubbles, you can create a game in which you chase a character or pop balloons with your hands.
Instructions
- Log in to Scratch.
- Click Add an extension and choose Video Sensing. It will detect how fast an object is moving. If the number is lower, it will be more sensitive to movement.
- Add a sprite. Choose a sound and add it to your sprite. If you want, you can add Create a clone to duplicate your sprite.
- Create two variables: one for Score and the other for Timer and add them to the sprite. Set the Timer to 30 and add Change Timer by -1.
- Create a new sprite Game Over to finish the game. You can also create a sprite with the title of your game, e.g., Collect all EU Code Week bubbles.
Share the link to your work in your Instagram Bio: tap the Edit Profile button on your Instagram and add the link to your work in the Website field. After that, create a new post, add a screenshot of your work, write “Link in Bio”, add the hashtag #EUCodeWeekChallenge and mention @CodeWeekEU.
Example
Play a video sensing game Collect all EU Code Week Bubbles. Feel free to remix this project.
Click here to download this challenge as a word document.
Copyright notice ©
The EU Code Week website for schools is a service supported by the European Commission
Except where stated otherwise, content made available on this site is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license
Licensing under Creative Commons licenses does not of itself affect the ownership of the copyright
Content from third party websites is subject to their own copyright restrictions; please refer to the site of origin for more information.
The EU Code Week website for schools is a service supported by the European Commission
Except where stated otherwise, content made available on this site is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license
Licensing under Creative Commons licenses does not of itself affect the ownership of the copyright
Content from third party websites is subject to their own copyright restrictions; please refer to the site of origin for more information.