Scratch Notes
Scratch Notes
2. What is a variable?
o Sprites are the characters or objects in Scratch that perform actions and interact
with the environment.
o They are coded using blocks to move, change appearance, or react to user input.
o It brings animations and games to life by making sprites move, change costumes,
detect interactions, and respond to events.
o These blocks loop actions continuously (forever) or for a set number of times
(repeat).
o They ensure animations and movements run smoothly without manual repetition.
o Loops reduce repetition, making the code efficient and controlling the timing and
behavior of animations or game mechanics.
Example: A car in a racing game keeps moving forward using a forever loop.
11. Can you think of a repetitive task in games that uses loops?
Debugging helps find and fix errors, ensuring the program runs as expected.
Example: Fixing a bug where a sprite moves too fast or doesn't detect collisions
properly.
15. How does breaking down a problem into smaller parts help?
Ensures each part of the game or animation works correctly before combining
them