If I am not in the start of the lesson please complete this Scratch game. This fun game will help you consolidate your skills.
This page will help you to make a moving, talking number animation...
Start a New Scratch Program and right click on the CAT to delete him.
Now choose a new sprite - using the folder open icon.
Go for Letters and then the Scratch Letters Folder - Choose a Number 2
Use the SHRINK Tool to make the sprite a bit smaller click on the tool then repeatedly click on the sprite to shrink.
Now do the same thing by adding a number 5 - I have made my background Yellow by editing the stage background too but this is optional.
Add this code to each sprite to make them move and bounce off the edge of the screen. The code first points the number in a random direction then moves it forever bouncing off the edge when it gets there.
Now add to the code to make something happen when the two sprites meet, this code is for Sprite 2.
Here I have made the number two say to the number 5 that "me times you is 10" for two seconds.
Add similar code to the 5 only this time make it say "me plus you is 7" for two seconds.
Now you may have noticed a problem when they are together in that they just stick and hardly move - we can fix that problem....
Add to the code again to make the sprite vanish and re-appear at a specified point.
You will have to amend the position that the number 5 sprite appears at to something different to the number 2 otherwise it will just be touching all the time!
Try the program.
Now why not add one more number to the animation that interact with the other numbers. You will have to amend the code by adding another IF statement to each sprite to handle the interaction with the new number(s)
Other things you can try - Add a pen trail to each sprite which leaves a track of where it has been.
I have added a clear block at the beginning and then a pen color and pen down block in the loop.
You will notice that the tracks are not so random.......
Add another random direction choice after the numbers have been placed back into a start position - makes the tracks a bit more random.