Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    2D - SDG 12 - Recycling Quiz (Difficulty: 1)

    Tutorials
    1
    1
    8457
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Key Topics Covered

      • Set or Change Sprite Size
      • Paint Costumes
      • Switch Costumes

       
       

      Introduction

      The SDGs are 17 goals adopted by the United Nations in 2015. They are a to-do list for everyone to work on together.

      This tutorial is about recycling, which is related to the 12th goal of “improving how we consume and produce”.

      You will create a simple quiz for the player to choose whether an item should be recycled:

       

      Step 1 - Remix a Template Project

      First, please click this link to open the project template:

      https://play.creaticode.com/projects/c6ff348d316b5d815fecd0f4

      Click the “remix” button to make a remix project of your own. Note that you need to be signed in to do this.

      9447b4b8-6118-4575-8997-85801552e955-image.png

      This project contains 3 sprites. The Item sprite represents the waste item in question. It contains costumes for many common items. In this tutorial, we’ll only use the “Milk Jug” costume.

       

      Step 2 - Move and Resize the Sprites

      First, let’s move and resize the sprites to a better layout. For example, you can make the waste item larger, and place the 2 bins on the right with a smaller size.

       

      Step 3 - Paint a new Sprite for Arrows

      Next, let’s add another sprite to show 2 arrows from the waste item to the trash bins. You can add a new sprite with a blank costume using the “Paint” button on the bottom right:

       
      In the costume editor of this new sprite, add a new arrow with a color you like, then rotate it to point upwards.


       
      Next, select this arrow, then make a copy of it. Place the new arrow below and point it downwards:

       

      Step 4 - Add Text to the Trash Can Costume

      When the player picks the trash can correctly, we need to show a big “Yes” over the trash can. The easiest way to do this is to add another costume with the word “Yes” over it. Please duplicate the trash can costume, and add the “Yes” text over it.

      Similarly, please make another costume of the trash can with a big “NO”:

       

      Step 5 - Copy Text to Recycling Bin

      We will also need the “YES” and “NO” versions of the recycling bin. You can duplicate the recycling bin 2 times, then copy the text from the trans can costumes.

      By now we have all the costumes we need, so it’s time to start adding code blocks.

       

      Step 6 - Show the Trash Can with No Text

      When the project starts to run, we should show the trash can with no text on it. You can add these 2 blocks to the trash can sprite:

       

      Step 7 - Switch to “NO” When Trash Can is Clicked

      Since we are using the milk jug as our example, it should be recycled. So if the player picks the trash can, the answer is wrong. We can switch to the costume with “NO” on it when that happens. You should use these blocks in the trash can sprite:

      Now our trash can sprite is working. It will start with no text, then switch to “NO” when we click on it:

       

      Step 8 - Add Similar Code for Recycling Bin

      Now please copy the 2 stacks of blocks to the recycling bin sprite, and make it say “YES” when clicked:

      Now our simple quiz project is complete. After the user clicks the green flag, he or she needs to pick the trash can or the recycling bin, and we will show the answer after that:

       
       

      Creative Ideas

      There are many ways you can extend this project with your own creative ideas. Here are some examples:

      • Different Items: You can either select another item in the “item” sprite’s costume list, or add a new costume yourself. For your reference, this page contains many examples of things that are recyclable and not recyclable.

      • Smily Faces: Instead of showing “YES” or “NO”, you can also overlay a smiling or angry face over the trash can and recycling bin.

      • Multiple Levels: After the player has answered one question correctly, you can add 1 point to his score, and show another item. Keep going until he or she makes a wrong choice.

      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post