Scratch Session 2 PDF
Document Details
Uploaded by DeadOnOwl1888
Tags
Summary
This Scratch Session 2 document provides a guide to basic programming concepts using the Scratch platform. The document details how to create a timer using Scratch blocks and also explains other tools and features of the platform. The content is aimed at primary-level learners, teaching basic programing concepts.
Full Transcript
Scratch Session 2 01. Timer What if you want the timer to count down descending? Lets understand how it works The script starts when the green flag is clicked, which typically initializes the game or project. This initializes the Time variable to 60 seconds. It repr...
Scratch Session 2 01. Timer What if you want the timer to count down descending? Lets understand how it works The script starts when the green flag is clicked, which typically initializes the game or project. This initializes the Time variable to 60 seconds. It represents the starting countdown value. The loop runs repeatedly until the Time variable becomes less than 1.This means the countdown will continue as long as Time is greater than or equal to 1. Inside the loop, the script pauses for 1 second before moving to the next step. This creates the effect of a 1-second interval. After waiting, the Time variable is decreased by Can you do it? Now, what if you want to make a message appear on the screen? Like “Game over", "start”….etc. This will lead us to a new area called, “costumes” first, you need to add your sprite then go to costumes. 1. The brush. The brush is used to make general shapes, and it is the most common costume-making 2.The line. The line is for creating straight edges that are hard to create with the brush. 3.The rectangle tool (or press and hold shift to draw a square). With this, you can draw a perfect box without much hassle. 4.The circle tool (Press and hold shift to draw a circle). This tool creates a better circle or oval than the brush tool if you want a good circle. 5. The text. Click on the place you want to type, and a text box will pop up. This may be used for labelling or custom texts. 6. The ‘fill with color’ tool. Click anywhere to fill that space with any color of your choice. 7. The eraser. You know what an eraser does! It eliminates the color or whatever customization you have applied! 8. The ‘select’ tool. You use it to move the selected space to a new position. Project time The sea is in danger! A warning area is filled with sharks that are attacking fish and sea creatures. Your mission is to create a game that prevents the sharks from attacking. The shark will only be active for 30 seconds, so you must act fast to protect the sea creatures. Mission: As a talented programmer, your task is to create this defense game. The game revolves around the following main elements: 1.Shark: The shark follows the mouse pointer constantly. By pressing the space key, the player can send a clone of the shark, which will open its mouth, ready to attack the sea creatures trying to escape. 2.Orange Fish & Octopus: These sea creatures move from left to right in a loop, trying to avoid the warning area while escaping from the shark. 3.Blue Fish & Crab: These sea creatures move from right to left in a loop, also trying to avoid the warning area while escaping from the shark. The shark will be active for only 30 seconds, after which it will be eliminated, and all the