20
Arrays in Alice 3

Arrays in Alice 3

  • Upload
    tekla

  • View
    51

  • Download
    1

Embed Size (px)

DESCRIPTION

Arrays in Alice 3 . Start by adding characters from the Looking Glass Character Gallery. As an example five Magicians were added each given a slightly different name: Magician1 Magician2 etc. Using the same choices used to create a procedure: click MyScene, Procedures, Declare Procedures. - PowerPoint PPT Presentation

Citation preview

Page 1: Arrays in Alice  3

Arrays in Alice 3

Page 2: Arrays in Alice  3

Start by adding characters from the Looking Glass Character Gallery

Page 3: Arrays in Alice  3

As an example five Magicians were added each given a slightly different name: Magician1

Magician2 etc.

Page 4: Arrays in Alice  3

Using the same choices used to create a procedure: click MyScene, Procedures, Declare Procedures

Page 5: Arrays in Alice  3

Key in any legal name Then click “OK”

Page 6: Arrays in Alice  3

Next drag the initialize tile down from the instructions (located upper right)

Page 7: Arrays in Alice  3

After dragging “Initialize” down a window opens

Page 8: Arrays in Alice  3

Check the array box, pull down choices This example uses “Character”

Page 9: Arrays in Alice  3

Several things: Name “myGroup,”“ADD” clicked, pull down list of possible characters

Page 10: Arrays in Alice  3

First (Zeroth) element will be “Magician”

Page 11: Arrays in Alice  3

Later Magicians 2,3,4 and 5 Added

Page 12: Arrays in Alice  3

After “OK” clicked, completed tile looks as follows:

Page 13: Arrays in Alice  3

Now drag a tile “For…Loop” down, take the myGroup choice

Page 14: Arrays in Alice  3

Next drag a tile from the left“Levitate” in this example from Magician

Page 15: Arrays in Alice  3

Tile “Levitate” goes on top of “Drop tile Here” placeholder

Page 16: Arrays in Alice  3

Next drag the “C” from above the “Levitate” tile on top of “This.Magician”

Page 17: Arrays in Alice  3

Next get to Run method (click tab above your method) Click MyScene

Page 18: Arrays in Alice  3

Find tile “theArrayMethod” whatever you named it, drag it to the right

Page 19: Arrays in Alice  3

Next run the program

Page 20: Arrays in Alice  3

Your Magicians should each levitate in turn