Let’s create a scenario for a cat crossing the street!
- Cat: “Hey, I’m gonna cross the street
- Dog: “Wait”
- Cat: “What?”
- Dog: “Look both ways before you cross”
- the cat looks left
- the cat looks right
- Cat: “Crossing now”
- The cat crosses the street
Guided instruction to implement this scenario in Scratch
- Open Scratch and create a new project.
- Select the “urban” backdrop by clicking on the “Choose a backdrop from library” button below the stage and choosing the “urban” backdrop.
- Add the “dog2” sprite by clicking on the “Choose a sprite from library” button below the stage, selecting the “Animals” category, and choosing the “dog2” sprite.
- Resize both sprites to a size of 50 by clicking on the sprite and using the “Size” block in the sprite’s code.
- Position the dog sprite on one side of the street and the cat sprite on the other side as shown in the image provided. You can drag the sprites to the desired positions.
- Horizontally flip all costumes for the dog sprite so that it faces to the left. To do this, click on the dog sprite, go to the “Costumes” tab, select each costume, and use the “Flip horizontally” button.
- Copy the first costume of the cat sprite and place it in the third position. To do this, click on the cat sprite, go to the “Costumes” tab, select the first costume, and click on the “Duplicate” button. Then drag the duplicated costume to the third position.
- Horizontally flip the third costume of the cat sprite. To do this, click on the cat sprite, go to the “Costumes” tab, select the third costume, and use the “Flip horizontally” button.
Now you have set up the sprites and costumes for the cat crossing the street scenario in Scratch. You can continue by adding scripts to animate the sprites and make the cat look left and right before crossing the street.
Follow along with the video below:
Scratch project: https://scratch.mit.edu/projects/848541187
For our Sprite 1 (Cat)
For Our Dog2
© 2023 Vedesh Kungebeharry. All rights reserved.