Imagine family and friends opening an interactive Christmas card – created by your child! It is much easier than you think and children as young as 3rd grade should be able to manage this feat with minimal adult help. For younger children, parents can get involved in the fun!
Here is exactly how to to use the Scratch programming language to create the Christmas card – in 10 easy steps!
Step 1: Go to the Scratch website
Go to the Scratch website and create an account.
Step 2: Start your interactive Christmas Card
Click on ‘create’ in the menu bar at the top of the screen
Step 3: Select a backdrop
At the top (where the red arrow is) type in a name for your project. Then go to where the purple arrow is pointing and click to select a backdrop. I chose “winter”.
(Note: next to the option to select from their library are options to draw your own background, upload from a file or take a photo with the computer’s camera – so if your children are more ambitious they can try one of these)
Step 4: Remove the default sprite
Right-click on the sprite, or double-click if you are on a Mac, and that will pull up the menu that allows you to delete a sprite. Delete the cat – unless you want him on the card.
Step 5: Add your first sprite
Click on ‘New sprite’ and select one from the library (once again you could draw your own, upload a picture from a file or use the computer’s camera to take a photo).
You will see this sprite comes with one script – “set size to 100%”. There are many other scripts to choose from and these tell the sprite what you want it to do. You can currently see all the blue “Move” scripts, but if you click on one of the other colors you can see those categories of scripts.
Step 6: Make a dancing penguin
The different scripts (pieces of code) in Scratch will click together like a jigsaw puzzle. Make sure they do as if they aren’t connected, the code will be ‘broken’ and not work. Copy the script I have here by clicking on Events, Control, Motion and Sound to find the blocks you need. You already have the “set size to 100%” on the screen so just drag and add it in the correct place.
If you select the wrong script by mistake – no problem – just drag it back to where you got it and it will disappear!
This script tells the penguin sprite to stay his usual size (100%), and then to repeat 10 times the following sequence:
- wait 1 second (without this the movement will happen too fast to see)
- move 10 steps
- change costume
In Scratch, a costume is a variation on the appearance of a sprite and you use it when you want to animate sprites. Not all sprites have costumes but if they do you will find them when you click on the Costumes tab. Here you can see our penguin sprite has 3 costumes.
The effect of letting him move and then change costume makes it a more fun animation. Click on the penguin now – the one in the left panel – and you will see him dance. If he does nothing, check you have the code EXACTLY like mine and that all the pieces are properly joined together.
Step 7: Add a ringing bell
Now it is time to add another sprite. Follow the same steps as when you added the first one. I chose a bell this time. Drag it to where you want it to be on the screen. Here is the code to make the bell ‘ring’ when clicked.
Step 8: Add a blinking star
Add another sprite – you know how to do that by now. I used a star. These scripts will make it blink. Be sure you have the star sprite clicked before you add the scripts (see the red arrow). There will be a blue box around the sprite the scripts apply to.
These scripts hide the star, wait briefly (.5 seconds) and then reshow it and then wait briefly (.5 seconds) and this repeats 5 times. Please note you need to change the value of the numbers (see the purple arrows). Just overtype with the values you want.
Step 9: Add a talking gift
Add your final sprite – I chose a gift. Then make it “talk” ie when it is clicked, add words to say “Happy Christmas” or whatever you want to say.
Step 10: Share with family and friends
Now it is time to save and share. Click on Files and then ‘Save’ (the red arrow) and then click on Share (purple arrow). If you don’t share a project no one can see it!
Add some instructions on the project page like I did (red arrow) and finally grab the url (purple arrow) and email that to whoever you want to send it to!
Prefer to watch a video for the instructions?
Now just sit back and wait for the recipients to be impressed. Or – challenge yourself and try to create some variations to make your interactive Christmas card even better! And if your children love coding in Scratch, consider gifting them an online Scratch class for Christmas!
Meryl van der Merwe started programming as a teen and worked as a computer programmer before becoming a homeschool mom. She has been teaching live and online programming classes – and other subjects too – for over 10 years. You can find her online classes at FundaFunda Academy. Follow her on Facebook, Pinterest and Instagram.