![]() ![]() The currently selected sprite is highlighted blue.Īccessing different sprites can be done in the sprites pane, located below the stage. A project can have hundreds of sprites, each doing its own job. For example, in a game where a dinosaur chases the Scratch Cat, the dinosaur is programmed to chase the cat, while the cat is controlled by the player. Each sprite has its own blocks, and they can communicate with each other using Broadcasts. Sprites are like the characters of a project. ![]() To access these two editors, click on the tabs above the blocks palette: The sound editor is used for importing, recording, and modifying sounds used in a project. The Scratch paint editor can be used to draw the images for sprites (the characters, buttons, etc.). A paint editor is a program used for designing and editing images. Scratch even includes its very own paint editor and sound editor. Paint/Sound Editors Main article: Paint Editor Main article: Sound Editor Run the project again while holding the space key down, and the sprite will move 10 steps. When the script ran, it first detects if the space key is down, and if it is, then the sprite will move 10 steps. When the green flag is clicked, it triggers the script beginning with the "when green flag clicked" block to run. The script begins with "when green flag clicked", which was done. Take a look at the script again remember, a script is a fully connected chain/stack of blocks. Unless you were holding down the space key, nothing should have happened. Click the Green Flag to run the project, and see what it does.ĥ. Grab the blue key sensing block that is still in the void and place it into the hexagonal input area of the orange "if" block:Ĥ. Assemble the blocks into this formation:ģ. Assemble the following "script", or connection of blocks, by accessing the various blocks by color and category.Ģ. Some blocks can even fit inside other blocks, as shown below:ġ. They have specific commands which function uniquely from one another. Check out the other block categories and test out what blocks in them do.Īs shown above, blocks are the building "blocks" of a Scratch project. When done, click anywhere on the block except the white middle, and watch what happens to the Scratch Cat. Release the mouse to place the block make sure the block is placed in the darker grey, technically called the scripts area.Ĥ. Select the blue " block" called move () steps, and drag it to the right.ģ. Access this area of the Scratch program:Ģ. Follow the steps below when the Scratch program is opened with a clean, new project.ġ. That is when programming comes into place, as it "makes things do what they should".īefore getting more into the interface, the quickest way to understand how sprites are programmed in Scratch is by testing things out. The flexibility of Scratch allows the creator to be imaginative and actually make the desired project. Characters are programmed to perform what a Scratcher desires them to do. The Scratch Cat is simply one of many sprites, or characters, buttons, etc. By default, the Scratch Cat is on the stage. The stage is where a Scratch project is physically run, so when one plays a game, the Stage is the window in which it is run. At the top-right of the interface is the stage. The Scratch interface is divided into two sections: the running environment and the development section. The Interface Main article: User Interface The current version of Scratch is Scratch 3.0. The offline editor can be downloaded here. The online editor can be accessed by clicking the Create tab on the website or by clicking here. It is easier to connect with the Scratch Community using the online editor, but it can only be used with an internet connection. Both are very similar, but have minor differences. Scratch offers two editors: an online one, and an offline one. In other terms, a project is the created coding in Scratch. ![]() The Scratch project editor is used to make Scratch projects, which can be shared to the world using the Scratch Community. ![]() Projects are animations, stories, art, pen, and games - and just about everything else made in Scratch. ![]()
0 Comments
Leave a Reply. |