Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

4.05 Additional features

There are lots of features you could add to improve your customers’ shopping experience. You don’t need to add everything. Just add improvements that you think are important.

You can ‘See inside’ the example projects to look at how they work.

Example projects:
Fresh Space FruitSee inside
Cool ShirtsSee inside
Ice cream shopSee inside
Vending machineSee inside

Tip: If you are logged in to a Scratch account, then you can use the Backpack to copy scripts or sprites to your project.

  • You can use your Scratch Backpack to store costumes, sprites, sounds, and scripts that you want to copy between projects.
  • You can only access your own Backpack, and you must be logged in to your Scratch account to use it.
  • To open your Backpack, click on the Backpack tab at the bottom of the screen.
Clicking on the Backpack tab just below the Code area opens the Backpack.
  • To add a sprite to your Backpack, drag the sprite from the Sprite list to the Backpack. This will store the full sprite in your Backpack, including all of its costumes, sounds, and scripts.
Dragging the Turtle 2 sprite from the Sprite list to the Backpack to add it.
  • To add a backdrop to your Backpack, select the Stage pane and click on the Backdrops tab, then choose the backdrop that you want and drag it to your Backpack.
Dragging an island backdrop from the Backdrops tab to the Backpack.
  • To use an item in your Backpack in another project, open the project and drag the item from the Backpack to the correct pane or tab.
Dragging the Turtle 2 sprite to the Sprite list, and the island backdrop to the Stage pane, in a new project.
  • To delete an item in your Backpack, find the item in the Backpack tab, then right-click (or on a tablet, tap and hold) on the item and select delete.
Right-clicking on the Turtle 2 sprite in the Backpack, then selecting 'delete' to delete it.
  • You can hide your Backpack when you are not using it. To do this, click on the Backpack tab at the bottom of the screen.
Clicking on the same Backpack tab used to open the Backpack, to hide the Backpack.

Do you think your checkout person (or machine) should ask more questions?

You can add ask blocks to your seller’s when this sprite clicked script and say different things depending on the customer’s response.

You could ask whether the service was good, or if they’re having a nice day. Or something specific to your shop, like “What are you going to cook?”

Debug: Check that you have spelled the options correctly in your code and in your answer. It’s OK if you use capital letters, so “Yes” and “YES” will match “yes”.

Add multiple questions to create a chatbot or non-player character that you can talk to.

Do you want something else to happen when you add an item?

The Cool Shirts project has shirts that glide into a bag.

Add a Container sprite. You could use an existing sprite like the Gift or Take out sprite, or paint your own with simple shapes.

Add a script to make the Container always appear at the front:

Then you’ll need to add code to each Item you have for sale to make them glide to the container when they are clicked:

If you don’t want the container there all the time, you can add scripts to make it show and hide at the right time:

Test: Try your project and make sure items glide to the container and hide.

Debug: Check your scripts carefully and make sure you have updated all of your Item sprites. You can look at Cool Shirts if you need to see a working example.

The Ice cream project shows the ice cream as the customer chooses their options.

Each item needs to broadcast in its when this sprite clicked script:

Then the sprite you want to show or change needs to respond to that message:

You may also want to change or hide the sprite for a new customer:

If you have multiple items, then you will need to add more messages and scripts to to receive them.

Have you noticed that your customer can add items after they have started to check out?

If you want to stop the customer adding items when they are at the checkout, you can add a shop variable and use it to control when items can be added.

×
×

Cart