Customizing and Debugging

On this page, you will edit the word lists used by the sprites and debug any problems.

  1. Open your U1L2-Gossip project. Edit these three reporter blocks to change the phrases that the program uses. (See the instructions in the box below.) Be creative and funny but thoughtful.
    who block does what block who2 block

    How to Edit a Block

    1. Find the block in the scripting area or the colored palettes on the left.
    2. Control-click (or right-click) on the block and choose "edit..."
    3. Make changes to the block's internal code. (Instructions are already inside these blocks.)
    4. Click OK when you're satisfied. (Or click "Cancel" if you don't want to make changes.)
    Brian, you need to redo this video with the plus signs on and with the space before the 2 in who 2 (start from the starter file, please). --MF, 6/15/20
    Click for a video of these steps of how to edit a block.
    How to edit a block
Why do these blocks use report ()? Why not just use say ()?

The report and say blocks mean very different things. Report tells something to the computer, and that value can be used as input to another block, such as the join block inside gossip. Say just shows a value to the user in a speech bubble.

: Lists, Strings, and Concatenation

The process of testing, finding problems, and fixing them is called debugging.

  1. Make sure your program works. Test each block as well as the program as a whole. If something doesn't work, don't go on without fixing it.
    Save your work
photo of Edith Windsor
Image Author Rex Block

Edith Windsor (1929–2017) was an American LGBT (lesbian, gay, bisexual, and transgender) rights activist and a technology manager at IBM, where she was hired after receiving a master's degree in mathematics in 1957 from New York University. At IBM, Windsor focused on operating systems and computers progressing natural language (human language). Windsor was known around IBM for her "top-notch debugging skills" and was promoted to senior technical and management positions. She was the lead plaintiff in the 2013 Supreme Court case United States v. Windsor, which overturned Section 3 of the Defense of Marriage Act and was considered a landmark legal victory for the same-sex marriage movement in the United States.

Learn More

  1. AAP-2.D
    Which two of the following sentences could be reported by gossip?
    gossip: (report (join (who) ( ) (does what) ( ) (who)))
    For reference:
    who reporter block definition: report (item (random) of (list (Señora) (Ms. C) (my cat) (Hannah) (Jake))) does what reporter block definition: report (item (random) of (list (listened to) (loves) (ran away from) (helped) (is in a band with)))
    Señora and Ms. C helped.
    Señora ran away from my cat.
    Hannah listened to Hannah.
    Jake helped.
  2. Change the costumes to anything you like.

    Adding a Costume

    1. In the sprite corral, select the sprite you want to give costumes to.
    2. Choose "Costumes..." from the File (File button) menu.
    3. Choose a costume.
    4. Click "Import."
    5. Click "Cancel" to close the dialog box.
    You can use a photograph or picture from the Internet by dragging the image onto the Snap! window.
  3. Fix any issues with your costumes.

    Adjusting a Costume

    • You can change the size of your sprite using set size to ( ) %.
    • You can change the position of your sprite using go to x: () y: ().
    • You can change the direction your sprite is facing:
      point in direction (270) with menu open showing right left, up, down, random
  1. Change the background on the Stage.

    Adding a Stage Background

    Changing a stage background is almost like changing a costume.
    1. In the sprite corral, select the stage.
    2. Choose "Backgrounds..." from the File (File button) menu.
    3. Choose a background.
    4. Click "Import."
    5. Click "Cancel" to close the dialog box.