The Code Behind the Animation
Look at these two pictures. They do not look alike, but they are related.
On the right is an animation. On the left is computer code that tells the characters in the animation how to behave.
These pictures come from the coding website called Scratch.
Scratch is a web application. With Scratch, you can:
Write simple computer programs.
Create computer stories, games, and animations.
Share stories, games, and animations with others.
Scratch uses blocks instead of symbols, numbers, and letters.
Each block represents a line of code. These blocks of code snap together like puzzle pieces.
By connecting blocks of code, you create a computer program.
There are different kinds of blocks. Each type comes in a different color.
Computers do exactly what programs tell them to do. If your program does not do what you wanted, the code needs changes. Do not worry!
Fixing a computer program is a normal part of software engineering. This process is called “debugging," and it can take some time to do. Software engineers need to debug their work often.
Check each block. Check for the right colors, numbers, and words. Make sure each block is connected to another block. The more you practice debugging, the better and faster you will get at fixing problems. What steps can you follow every time to find the mistake fast?