arrays in alice 3
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 PresentationTRANSCRIPT
![Page 1: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/1.jpg)
Arrays in Alice 3
![Page 2: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/2.jpg)
Start by adding characters from the Looking Glass Character Gallery
![Page 3: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/3.jpg)
As an example five Magicians were added each given a slightly different name: Magician1
Magician2 etc.
![Page 4: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/4.jpg)
Using the same choices used to create a procedure: click MyScene, Procedures, Declare Procedures
![Page 5: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/5.jpg)
Key in any legal name Then click “OK”
![Page 6: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/6.jpg)
Next drag the initialize tile down from the instructions (located upper right)
![Page 7: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/7.jpg)
After dragging “Initialize” down a window opens
![Page 8: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/8.jpg)
Check the array box, pull down choices This example uses “Character”
![Page 9: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/9.jpg)
Several things: Name “myGroup,”“ADD” clicked, pull down list of possible characters
![Page 10: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/10.jpg)
First (Zeroth) element will be “Magician”
![Page 11: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/11.jpg)
Later Magicians 2,3,4 and 5 Added
![Page 12: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/12.jpg)
After “OK” clicked, completed tile looks as follows:
![Page 13: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/13.jpg)
Now drag a tile “For…Loop” down, take the myGroup choice
![Page 14: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/14.jpg)
Next drag a tile from the left“Levitate” in this example from Magician
![Page 15: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/15.jpg)
Tile “Levitate” goes on top of “Drop tile Here” placeholder
![Page 16: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/16.jpg)
Next drag the “C” from above the “Levitate” tile on top of “This.Magician”
![Page 17: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/17.jpg)
Next get to Run method (click tab above your method) Click MyScene
![Page 18: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/18.jpg)
Find tile “theArrayMethod” whatever you named it, drag it to the right
![Page 19: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/19.jpg)
Next run the program
![Page 20: Arrays in Alice 3](https://reader035.vdocument.in/reader035/viewer/2022081419/568160fa550346895dd036db/html5/thumbnails/20.jpg)
Your Magicians should each levitate in turn