Move to your “Event” block, pick up ‘When the green flag clicked For such to happen, we need to write down a code. The game becomes useless if the Pacman does not move or change directions, the excellency of the game is concerned with the movement of the sprites, the Ghost and Pacman sprites. MOVEMENT OF THE PACMAN AND DIRECTION CHANGES CREATE A VARIABLE FOR ‘SCORE’ AND ‘HIGH SCORE’Ī variable is a quantity that can assume any set of values, therefore we shall create a variable of the score and high score, in which each score is seen on the ‘score’ button and the highest goal points reflects on the ‘High Score’ button, the ‘variable’ can be gotten from the variable block inside the ‘Script’ category. It looks very tiny during your design but clear when placed on the backdrop, the same applies to both the dot and bonus. We shall also bring out the dots sprites as shown on the first image which serve as food or meal for the Pacman, we shall be using two different kinds of dots bonus and dots which will be placed in several parts of the backdrop otherwise called a background. To create a shape for the eyes, select the square-like shape, place it in front of the PacMan created and then apply any kind of colour for the shape.įor your Ghost sprites, make use of the same format, adding your own design and templates.Select your line shape, create a semi-circle, and apply colour by selecting your colour paint.Select the circle shape, place it on the background, select the eraser, and take away some lines in the circle, more of creating a shape of a semicircle.Select “Convert to Bitmap” for the purpose of your creation.select “Paint”, it automatically takes you to the section called ‘Costume’ where you will be able to create your design Select a sprite by clicking on the icon “Choose a Sprite”, and.The Pacman is the sprite that eats up the dots and serves as the player while the Ghost sprites stand as obstructions to the Pacman from taking in the dots.Ħ simple steps on how to create a Pacman of your choice. There are 3 sprites required in a Pacman game, although it can be more than 3 it is effective when 3 sprites are being used in creating a Pacman game. Using the same paint tools, we create a design. My Blocks- this is used in creating more blocks for your commands.Īlso, it is worth noting that the script performs the same function for both the sprites and the background.Īfter doing this, we design a backdrop for “Game Over”, which is very essential during this game. Variables- this contains characters, and quotations necessary for coding.Operators- this contains mathematical quotations used while creating a code.Sensing- this has to do with the logical reasoning, colours of the sprite.Control – it governs, directs and determines the sprite activities.Events- this allows the sprites to take in different kinds of actions.Sounds- it has to do with the rhythmical functions, making various kinds of music.Looks- it has to do with the physical appearances of the sprites, language, costumes etc.Motion- it is used for the movement of the sprites.There are nine(9) scripts on the Scratch application. We shall be looking at the various scripts, blocks and functions. The scripts contain various items called ‘blocks”, the blocks are used essentially for coding with the aid of these blocks under the category of the scrips, you can create a well-coordinated design on your scratch application. We shall be looking at the scripts and its component which we will be making use of Scratch is categorized into three sections:
0 Comments
Leave a Reply. |