Step 8: From the “Control” block in the block palette, select the ‘if ( ) then’ block, drag it to the coding area, and place it inside the ‘forever’ block.Step 7: Go to the “Control” block in the block palette, select the ‘forever’ block, drag it to the coding area, and place it under the ‘switch backdrop to ( )’ block.Step 6: In the ‘switch backdrop to ( )’ block, select the vale as ‘backdrop 1’ from the drop-down menu.Step 5: Go to the “Looks” block in the block palette, select the ‘switch backdrop to ( )’ block, drag it to the coding area, and place it under the ‘go to x: ( ) y: ( )’ block.Step 4: From the “Motion” block in the block palette, select the ‘go to x: ( ) y: ( )’ block, drag it to the coding area, and place it under the ‘point in direction ( )’ block.In the ‘point in direction ( )’ block, leave the values as ‘90’. Step 3: Go to the “Motion” block in the block palette, select the ‘point in direction ( )’ block, drag it to the coding area, and place it under the ‘show’ block.Step 2: Go to the “Looks” block in the block palette, select the ‘show’ block, drag it to the coding area, and place it under the ‘when green flag clicked’ block.Step 1: Go to the “Events” block in the block palette, select the ‘when green flag clicked’ block, and drag it to the coding area.Make sure that the square-shaped sprite is selected while coding for it. It’s time for coding by fixing the player’s (square-shaped sprite) position at the beginning and whenever the user presses the ‘space’ key, the player must jump to avoid the triangular spikes. So, first, switch to the ‘Code’ section, then go to the “Variables” block in the block palette and create a variable named ‘score’.Ĭode for the player’s position and to make the player jump Step 10: After drawing the backdrops and sprites, it’s time to make a variable to keep the score of the game. Keep in mind to draw three different costumes for the triangle spike as shown below. Step 9: After drawing the square-shaped player sprite, it’s time to draw the triangle spike.Step 8: You can use your creativity and draw any type of square-shaped player sprite as per your wish.Now, to draw new sprites, click on the blue circle with the cat icon and select the second option from below that says ‘Paint’. Before drawing new sprites, make sure to delete the cat sprite. Step 7: After drawing the backdrops, it’s time to draw the sprites that will include a square-shaped player and triangular spikes.To do that, just repeat steps 1, 2, and 3 and after repeating these steps, design the end backdrop with “GAME OVER” text on it using the text option. Step 6: You need to draw another backdrop for the ending part of the game.Step 5: After drawing the rectangular path, fill your path with yellow color using the fill option.Step 4: Now, just draw a rectangular path using the rectangle option.Step 3: Once you click on the ‘Paint’ option, the following screen will appear.Step 2: After clicking on the blue circle for choosing a backdrop, select the second option from below that says ‘Paint’.To design a plain colored backdrop with a yellow-colored path on it, click on the blue circle available at the extreme right corner of the Scratch interface. So, for the geometry dash game, you need to design a plain colored backdrop with a yellow-colored path on it. Step 1: Open Scratch and start with creating a backdrop because, by default, Scratch presents a blank backdrop.So, to create your own geometry dash game in Scratch, you just patiently need to follow the step-by-step tutorial given below: This game helps the users understand the concept of variables, loops concept, and the if-then statements in Scratch. Geometry Dash was created by Griffpatch, one of the most popular users of Scratch. How to make a Geometry Dash game on Scratch 3.0? Looking to learn Scratch coding? Explore Wiingy’s Online Scratch Coding Classes For Kids to learn from top Scratch coding experts. If the square-shaped sprite hits or touches any one of the spikes, then the game will be over. In this game, a square-shaped sprite moves along a path and jumps over the coming spikes in its way. Geometry Dash game is one of the simplest games to play and create using Scratch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |