Upload
tekla
View
51
Download
1
Tags:
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
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
Key in any legal name Then click “OK”
Next drag the initialize tile down from the instructions (located upper right)
After dragging “Initialize” down a window opens
Check the array box, pull down choices This example uses “Character”
Several things: Name “myGroup,”“ADD” clicked, pull down list of possible characters
First (Zeroth) element will be “Magician”
Later Magicians 2,3,4 and 5 Added
After “OK” clicked, completed tile looks as follows:
Now drag a tile “For…Loop” down, take the myGroup choice
Next drag a tile from the left“Levitate” in this example from Magician
Tile “Levitate” goes on top of “Drop tile Here” placeholder
Next drag the “C” from above the “Levitate” tile on top of “This.Magician”
Next get to Run method (click tab above your method) Click MyScene
Find tile “theArrayMethod” whatever you named it, drag it to the right
Next run the program
Your Magicians should each levitate in turn