Scratch: Instructions for creating a car control game

Scratch: Instructions for creating a car control game

Scratch: Instructions for creating a car control game

Content Protection by DMCA.com

Building a roll game in Scratch sounds complicated but not realistic. In this tutorial, let’s learn how to create a roll game on Scratch using more logic and less blocks.

How to create rolls on scratch

The rolling game revolves around a car controlled by the player on a difficult road for the car to continue rolling smoothly. In addition, people will also use the right, left and up arrow key to control the location of the car in this game.

The goal is to use three keys to avoid the red area that appears whenever an ending path and the new path begins. Players must pay attention to the path and act quickly. To add accents to the game’s animation, people can add some patterns to the background to make the game roller more vivid.

Step 1: Create a Sprite path, use the Paint option

D mouse through the Sprite icon, then select Draw To create your own sprite.

This action takes everyone to the costume tab, click Convert to bitmap and press Bowl To choose the color.

To save time, use the tool Rectangle Then the left click and click down and start pulling the mouse cursor from left to right to make Sprite appear around the center of the drawing frame.

How to play the game in the scratch 3*471508
How to play the game in the scratch 4*471507

Step 2: Create background and add classes

Similarly, skip the backdrop library by selecting the option Draw When the mouse cursor Mouse through background icon.

Read More  Instructions for playing custom maps in Meccha Chameleon

When in the tab Backgroundclick Bowl To choose the desired background color, then click the tool Rectangle. Left click and hold the mouse in the upper left corner of the screen, then pull and drop the mouse in the lower right corner.

Now we have the first base class. Use the same technique to add the second and third layers to the game background. Remember, the red line will be a loss in the game.

Step 3: Enter Sprites and add the second background

Adding the second backdrop will be used for Game Over notifications. People can be taken from the backdrop library or created itself. Next, choose Building, Shark and Tree From the Sprite library. Once we have chosen, right -click and double Sprite.

Pulling and placing buildings and trees higher than red sugar and apart. Pull and place the shark at the end of the screen and change its size from 100 to 50 by clicking inside the size. Pull and set Sprite the custom path on the left of the stage and on the red line.

Step 4: Start the code

Apply the code below to the trees and buildings.

Then add the Sprite Car to put the car in the game, continue the code as below for cars.

Step 5: Set up the arrow to avoid falling into the red area

Set the car head lifted out of the ground and move forward faster than usual, as if it had an extremely powerful accelerator.

Read More  How to create a virtual pet game in Scratch

Using the navigation block to make the car look slightly upwards at the time it “fly in the air” and make it down when it exceeds a certain height. This makes the game more advanced and the player must know exactly when to use the arrow key.

GameHov is group of expert in gaming industry that cover all gaming news from e-sport to casual video entertainment.

Post Comment