Basic Etoys 07

Skip to end of metadata
Go to start of metadata

(Previous | Menu | Glossary | Next ) — (en) (ht) (es) (pt) (fr) (de) (ja)

Basic Etoys 07 - VARIABLES

This lesson introduces the concept of a variable by discussing X, Y, and Heading. Students will explore the coordinate grid and learn how to move sketches by changing the X and Y, both directly and in scripts. The slider and joystick will be used to change X, Y, and Heading. The lesson's activity will be to make many sketches move around the screen with sliders and the joystick.

SCREENCAST - (en) (ht) (es) (pt) (fr) (de) (ja)

HANDOUT - ([en]) (ht) (es) (pt) (fr) (de) (ja)

Unable to render embedded object: File (basic-etoys-07-front.png) not found. Unable to render embedded object: File (basic-etoys-07-back.png) not found.

OUTLINE - ([en]) (ht) (es) (pt) (fr) (de) (ja)

  1. Objects are located in the X/Y coordinate grid.
  2. X goes from the left side to the right side, getting bigger to the right.
  3. Y goes from the bottom to the top, getting bigger as it goes up.
  4. The largest coordinate for X is 1200. The largest for Y is 900.
  5. Set a variable in your script by dragging the variable tile by its white arrow.
  6. Make a reset script by first moving the object where you want it.
    • Drag the X, Y, and Heading variables to make the reset script, then make a button.
  7. The slider object lets you drag its thumb to make numeric value bigger and smaller.
  8. Change the max value to 5 and the min value to -5.
  9. Use a variable by dragging the name. Change a variable by dragging the white arrow.
  10. Connect an object with the slider by dragging "numeric value" the tile and dropping it on a number in the script.
  11. To increase a variable, click the black left arrow and choose "increase by"
  12. Change an object's Y, by using "Y increase by Slider's number value".
  13. To use arithmetic, click the green right arrow and choose +, -, * (multiply), / (divide).
  14. Drag the all scripts panel from the supply box to start and stop all your scripts at once.
  15. The joystick object is like a slider in both directions.
  16. Use Joystick's up down to make the Y bigger and smaller.
  17. Use Joystick's left right to make the X bigger and smaller.

PROJECT - (multi)

Unable to render embedded object: File (basic-etoys-07-shot.png) not found.



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.