📚 Simple Coding for Movement: Quick Study Guide
- 🧱 Connecting Blocks: In visual coding environments like Scratch, you drag and drop blocks to create scripts.
- ➡️ Movement Blocks: Blocks like "move [number] steps" or "change x by [number]" control an object's position.
- 🔄 Looping Blocks: "Forever" or "repeat [number]" blocks make actions happen continuously or a set number of times.
- 🕹️ Event Blocks: "When [key] pressed" or "when flag clicked" start scripts based on user interaction.
- 🧭 Direction: Objects have a direction (0-360 degrees) that determines where they move when using "move" blocks.
- ➕ Coordinates: The stage uses x and y coordinates. Changing x moves objects horizontally; changing y moves them vertically.
- 💡 Tips: Combine different blocks to create complex movements. Experiment with different values to see how they affect the object's motion!
🎮 Practice Quiz
- Which block is commonly used to make an object move forward in Scratch?
- A) say [message] for [seconds]
- B) move [number] steps
- C) play sound [sound] until done
- D) change color effect by [number]
- What does the "forever" block do?
- A) It stops the script.
- B) It repeats the blocks inside it once.
- C) It repeats the blocks inside it continuously.
- D) It does nothing.
- If an object's direction is 90 degrees, which way will it move when using the "move" block?
- A) Up
- B) Down
- C) Left
- D) Right
- What does changing the 'x' coordinate of an object do?
- A) Moves it up and down
- B) Changes its color
- C) Moves it left and right
- D) Rotates the object
- Which block starts a script when a specific key is pressed?
- A) when flag clicked
- B) when this sprite clicked
- C) when [key] pressed
- D) when backdrop switches to [backdrop]
- Which of the following is NOT a movement block?
- A) move [number] steps
- B) go to x: [number] y: [number]
- C) turn [direction] [number] degrees
- D) say [message] for [seconds]
- What is the purpose of the 'repeat [number]' block?
- A) To run a set of blocks indefinitely.
- B) To run a set of blocks a specific number of times.
- C) To stop the script.
- D) To change the object's color.
Click to see Answers
1: B, 2: C, 3: D, 4: C, 5: C, 6: D, 7: B