O'Reilly logo

Scratch 1.4 by Michael Badger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - stay dog

In this exercise, we're going to start the scene by positioning the dog in front of the microphone and end the scene by lying the dog on its side.

  1. Find the dog's current X and Y coordinates by looking in the Sprite Info section. Just above the Scripts, Costumes, and Sounds tabs, the sprite's current location displays.
    Time for action - stay dog
  2. From the Motion palette, drag the set x to 0 block to the scripts area. Change the input value to the dog's X value. My example uses -56.
  3. Add the set y to 0 block.
  4. Change the input value to the dog's Y value. My example uses -116.
  5. Let's identify some coordinates in front of the dresser. As you move your mouse ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required