- This event has passed.
3 PM – Scratch Level 2 – Allison
June 18, 2022 @ 3:00 pm - 4:00 pm
Today we:
- Continued the Supermarket project
- Created a Shopping Cart list
- Coded the Watermelon sprite to hide and add the word “Watermelon” to the Shopping Cart list if clicked
- Coded the Apple sprite to hide and add the word “Apple” to the Shopping Cart list if clicked
- Created the sprite “Checkout” and the variable “total_cost”
- Coded the Cat sprite to say the items in the Shopping Cart and say the total cost
Homework:
- Reminder: Please email your homework the night before class to allison@ayclogic.com. Don’t forget to share your project, as well as write your name and Scratch project link in the email.
- Code the Bananas, Muffin, Bread, Donut, Jar, and Milk 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 Bananas sprite, the sprite will point in the right direction, have a bigger size, and say “Thank you for purchasing bananas. It costs $4”. The banana will be added to the shopping cart, $4 has been added to the total cost, the sprite goes back to its original size, and then the sprite hides.
- Code the Banana, Muffin, Bread, Donut, Jar, and Milk sprites to show when the game starts.
- Contact us if you have any questions or need any help
Homework Information:
These are the costs for the items in the game.
- Bananas: $4
- Muffin: $2
- Bread: $5
- Donut: $6
- Jar: $7
- Milk: $9