« All Events
5 PM – Scratch Level 2 – Allison
February 4, 2023 @ 5:00 pm - 6:00 pm
Today We:
- Finished the Mary Had a Little Lamb project using list
- Started the Supermarket project
- Created a Categories List, a Supermarket List, and a total_price variable
- Coded the Cat sprite to say the categories by using list
- Coded the Watermelon sprite to rotate left and right when the Cat sprite says “Fruit”
- Coded the Watermelon sprite to have a different size, add the word “Watermelon” to the Shopping Cart list, change the total price, and hide if clicked
Homework:
- Add the Apple and Banana sprites
- Code the Watermelon, Apple, and Banana to set rotation style all around when the game starts.
- When the Cat sprite says “Fruit”, code the Apple and Banana sprites to rotate left and right (like the Watermelon sprite)
- Code the Apple and Banana sprites to do the same thing as the Watermelon sprite when clicked. Use the information at the bottom to help.
- Ex: If the player presses the Apple sprite, the sprite will point in the right direction, have a bigger size, and say “Thank you for purchasing an apple. It costs $2”. The apple will be added to the shopping cart, $2 has been added to the total cost, the sprite goes back to its original size, and then the sprite hides.
- Apple: $2
- Banana: $3
- Code the Apple and Banana sprites to show when the game starts.
- Contact us if you have any questions or need any help