3. Draw costumes

_images/scratch-p06-06.png

In this practice we are going to program a game that consists of drawing different characters on the screen with different sizes, turns and positions.


  1. We start the Scratch editor.


  2. In the costumes tab, we delete one of the cats and add several more characters.

    _images/scratch-p06-disfraces.png


  3. Next we program the following instructions.

    _images/scratch-p06-prog1.png _images/scratch-p06-prog2.png _images/scratch-p06-prog3.png _images/scratch-p06-prog4.png


  4. At this moment we can play with the screen to draw characters with the following controls.

    • Up Arrow = Plus Size

    Down arrow = Minus size

    Right Arrow = Rotate Costume Right

    Left Arrow = Rotate Costume Left

    Space key = Change the costume to another character

    Mouse click = Make a copy of the costume on the screen



Exercises

  1. Make an artistic drawing in which all the costumes appear on a stage.
  2. Add new costumes to be able to draw other objects as well.
  3. Modify the program so that when you seal the costume (mouse click) six images of the costume appear rotated 60 degrees each.
  4. Modify the program so that when you seal the costume (mouse click) four images of the costume of the original size appear, 50%, 25%