How To Make a Game on Scratch

MIT Media Lab developed Scratch as a children's educational tool.It is available online, with desktop versions for Mac OS, Windows, and Chrome OS.You can learn the basics of making a game.

Step 1: You can navigate to the page in a web browser.

You can download the desktop version of Scratch on this page.

Step 2: Click here to download.

You can download Scratch from the system's digital store.You can click at the top of the page to start creating immediately.

Step 3: Click on the install file.

The Scratch install file is for Windows and Mac.Double-clicking the install file will begin the installation process.In your browser, you can find downloaded files in your Downloads folder.

Step 4: You have to install scratch.

Select "Only for Me" or " Anyone who uses this computer" if you want to install Scratch.The Scratch installer can make changes to your system.Click.The app icon can be scratched to the Applications folder.

Step 5: You can open scratch.

The yellow icon has an S on it.The Start menu on Windows has an icon.It can be found in the Applications folder on Mac.The first time you open Scratch, it asks if you want to send data to the team to help improve it.You can click or not.The usage data will be sent to the Scratch team if you select Yes.Personal information is not collected by the Scratch team.

Step 6: There should be a background.

The icon that resembles a photograph in the lower-right corner can be used to add a background in Scratch.An image can be used as a background.You can use the tabs at the top to browse by category or the search bar in the upper- left corner to search by name.Click the icon that resembles a trey with an arrow pointing up if you want to upload your own background.If you want to use an image as a background, click on it.Click the icon that resembles a paintbrush if you want to draw your own background.The paint tools can be used to paint your own background.

Step 7: Add a picture.

There are image objects in the game scene.They can be the player character, enemies or obstacles, non-player characters, power-ups and consumables, or animated background objects.The icon resembles a cat in the lower-right corner.You can add a sprite to your scene.You can change the look of your scene by uploading and painting your own artwork.To do this, hover the mouse over the icon that resembles a cat and click the one that looks like a trey with an arrow pointing up.Click the icon that resembles a paintbrush to paint your own picture.The Preview window in the upper-right corner has a list of sprite that you can click to remove them.

Step 8: The start of the game is where you want the sprite to be.

In the upper-right corner is the preview window.You can drag the sprite to where you want it to be at the start of the game.

Step 9: The controls you want to add are on the sprite.

The preview window in the upper-right corner has a sprite icon.

Step 10: You can click on the Code tab.

The first tab is in the upper left corner.

Step 11: There is an event block in the code area.

The coding is done with blocks.There is a panel to the left of the blocks tab.The blocks have different colorscoded by type.There are yellow event blocks.To jump to event blocks, click the yellow dot.The code area is to the right of the list of blocks.When the green flag icon is clicked or when the key is pressed, there is an event block.The game sequence starts when you click the green flag.As soon as the game starts, use the block that says "When green flag icon is clicked" to create an action that starts.The Events blocks have it at the top of them.There is an icon with a green flag.

Step 12: Below the event block, attach a block.

The Look blocks are color-coded in purple.You can find a block for what you want.Attach it below the event block in the code area.The blocks have a notch above them.The action block should be inserted into the event block.Click the arrow to see a drop-down menu if the block has an arrow pointing down.You can pick an option from the drop-down menu.You can change the text inside the white bubble of a block.

Step 13: You can experiment with the blocks.

It can be difficult to figure out how to get the blocks to do what you want.Attach different blocks and see what happens.There are a couple of examples you can try.As an event block, select "When this sprite is clicked"Attach the block that says "hello!"For a short time from the Looks blocks.When you press the left and right arrow keys, add an event block that says "When [right arrow ] is pressed".The block has a drop-down menu for selecting the right arrow key.Attach a block that says "point in direction" from the motion blocks.Attach a motion block that says "move 10 steps".Attach a motion block that says "point in direction [-90]) and another one saying "move 10 steps" when you drag another event tag into the code area.

Step 14: Click Variables.

The panel to the left has an orange dot.The Variable blocks are displayed.Variables are used to make things such as the score, lives, and health meter.

Step 15: Click to make a variable.

It is above the variable blocks.You can use this to make your own variables.

Step 16: Click Ok if you want to type a name for the variable.

You can call it something like "Score" or "Lives" if you want to change it.

Step 17: There is a block in the code area that says when the green flag icon is clicked.

The Events blocks are where it is.The block has a green flag in the text.

Step 18: Attach the block that says set to blank.

It is in the variable blocks.The block has a drop-down menu that you can use to select a variable.

Step 19: The variable should be at the start of the game in the white bubble.

If you want to make a score, you should set it to zero at the beginning of the game.At the beginning of the game, enter the number of lives you want your character to have.

Step 20: After the Set Variable block, attach a "forever" loop block.

It is in the control section.There is a notch in the middle of this block.

Step 21: The "If/Then" look is in the middle of the block.

There is a notch in the middle of the "If/Then" block.It has a key after "If".

Step 22: There is a "Touching" block in the key.

At the top of the Sensing blocks is the "Touching" block.The key is in the "If/Then" block.

Step 23: Pick a different sprite that the controllable one can touch.

The block has a drop-down menu.It can be an enemy, a power-up, or a simple item that changes your score.

Step 24: Attach the blocks that you want to happen.

If you want to make a complex death sequence, you may need to experiment with the motion controls.Attach the variable to the "If/Then" block to change it.You can use the drop-down menu to select the variable you want to change.In the white bubble, enter the amount you want to change.You can increase your score by entering a number in the white bubble.You can enter "-1" in the white bubble if you want to take away a life.