introducing scratch 3 In this book you’ll learn how to code your own games with Scratch 3 You’ll use different blocks to create code You’ll also learn how to add objects called sprites and use code to tell them what to do At the end of each chapter you’ll find challenges to help you take your skills to the next level But before you start coding let’s learn a little about the website we’ll be using THE SCRATCH EDITOR The Scratch Editor is where you create projects in Scratch Here are its main parts Menus Use the File menu to save or load your projects Coding Area Drag and drop the blocks here and snap them together to create your program Start and Stop Click the green flag to start your code or the stop sign to stop it Stage Size Use these buttons to make the stage smaller set it to normal size or fill the screen The Stage Your program will run here Sprites Objects that move around on the stage Sprite Info Displays information about each sprite such as how big it is Code Blocks The code blocks in the current group are shown here Scroll down if you can’t find the block you want Tutorials Some help videos are shown here Click the white X to close this panel Sprite List All the sprites in your project are shown here The selected sprite has a blue border around it Choose a Sprite Add a new sprite to your project Choose a Backdrop Add a new background to your project Main Tabs Switch from coding drawing or adding sound Block Categories Code blocks in the Block Palette are sorted into colored groups Click a category to scroll to the blocks in that category viii viii
THE MAIN TABS Scratch has so many code blocks sprites and sounds to learn about Don’t panic you’ll learn how to use them in no time You’ll need to switch between the three main areas of the Scratch Editor while you’re creating your games These areas let you code change how your sprites look or add sound to a sprite The Code tab lets you drag code blocks into the coding area COSTUMES TAB Costumes Just as you have more than one set of clothes a sprite can have more than one look Scratch calls these looks costumes You’ll use different costumes to make simple animations New Costume Add a new costume to your sprite Click the Costumes tab to change how your sprite looks The Sounds tab allows you add a new sound to your project Fill Use this to set the color you’re drawing with Undo Click this if you make a mistake while you’re drawing Drawing Tools Use these to draw on your sprite Zoom Tools Use these to zoom in and add detail to your sprite costume Click Convert to Vector Bitmap to store images as vectors or bitmaps Vectors will look sharper but bitmaps are much simpler to create ix ix
When you’re drawing on the backdrop the Costume tab changes to the Backdrops tab The drawing tools for backdrops work in just the same way DRAWING TOOLS BITMAP Brush Use the mouse to draw on your sprite Text Type on top of your sprite Line Hold the mouse and drag to make a straight line Circle Drag to make an ellipse Hold down Shift to make a circle Rectangle Drag to make a rectangle shape Fill Color in areas within your sprite Eraser Rub out part of your sprite Undo is better if you made a mistake Select Select a part of your sprite to flip copy or rotate x x
COLOR SLIDERS You can move the sliders around to create more than 1 million colors But finding the exact shade you want can be tricky Use the values below to make a basic color then adjust the sliders and experiment to find what you need 0 0 100 40 100 65 88 78 100 0 100 100 62 34 100 11 100 67 0 0 84 40 100 98 74 81 67 0 100 0 11 100 100 88 32 100 67 1 57 16 100 100 61 100 100 xi xi