Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1:...

12
ALICE TUTORIAL Introduction to Alice 3

Transcript of Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1:...

Page 1: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

ALICE TUTORIALIntroduction to Alice 3

Page 2: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

STEP 1: SET UP THE SCENE

In this step you will open Alice and setup the scene. To set up a scene you will pick a template, create objects from classes, and position the objects. You can also use a procedure to move an object in the scene. A template controls what the background of the world looks like, objects are things in the world, classes are the things that define objects or classify them, and a procedure is a step by step description of how to do something.

Pick TemplateWhen you first start Alice 3 it will ask you to pick a template for your Alice world. There are lots of templates that you can use such as GRASS, ROOM, MARS. The template is used to set the ground and set other properties (characteristics) of the world.

1. Click on WONDERLAND.

2. Then click on OK.

Page 3: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Setup the SceneWhen you click the Setup Scene button you will be able to add objects to your scene. Objects are things in your scene such as people, trees, and animals. Objects know how to do things and have properties like a position. Objects will do the action in your Alice world.

.

Page 4: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Next we will create a Mad Hatter object.

1. Click on Biped classes

2. Click on new MadHatter()

3. Then click on OK

Position Mad Hatter by • click and dragging him to move him around

• hold CTRL and drag left or right to rotate him

• hold SHIFT and drag up or down to move

him up or down

Create Object – WhiteRabbit()

Create a whiteRabbit object and position it

where you want it to start in the scene. You

can move it by moving the mouse cursor. You

can rotate by clicking on the yellow ring

around it and then dragging.

Create Object – CheshireCat()

Create a cheshireCat object and position it

where you want it by the end of the scene.

You will move it away from the other

characters to start by executing (running) a

procedure.

Create Object - Mad Hatter

Page 5: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Add PropsNow we will add props to the scene to make it more interesting.

1. Click Browse Gallery By Theme then click Wonderland.

2. Click on new TeaTable() then click OK..

3. Move the objects around until the Table is in the middle of Mad Hatter and White Rabbit.

Page 6: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Create Object - new Teacup()Create a new Teacup() object for both the White Rabbit and Mad Hatter.

1. Click on Search Gallery to search for teacup.

2. Select the teacup and place it on the table in front of Mad Hatter and White Rabbit.

Create Object - new Teapot()Create a new Teapot() object and position it on the table. You can

move the object up by holding down Shift key while dragging the

object up.

Page 7: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Run a procedureTo start the scene with cheshireCat far away from White Rabbit and Mad Hatter, you can run a procedure on

the cheshireCat to move it backward.

1. Right click on this.cheshireCat in the left window and then select procedures then this.cheshireCat

move … then MoveDirection.BACKWARD and then Custom Decimal Number

2. Enter a number like "60" and click on OK

SAVE YOUR PROJECT!!!•File > Save as…

•Name your project and click save.

Page 8: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Step 2: Program the objectsIn this step you will program the objects to say things to each other and move. To program objects you will select the object that

you want to work with and then drag out a procedure call to the myFirstMethod() window. A procedure is a list of things to do.

Edit Code

1. Click on the Edit Code button so that you can start programming your objects.

Select Object – Mad Hatter

2. Click on the down arrow next to pick this.madHatter as the current object. This will show the procedures (actions) that Mad Hatter knows how to do.

Page 9: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

CALL PROCEDURE - SAY

1. Click on the left area of the block this.madHatter say… and drag it to the myFirstMethod() window.

2. Click on Custom TextString. This will let you type in a string which is a sequence of characters.

3. Type in what you want Mad Hatter to say, like "Where’s Alice?" and then click on OK.

Page 10: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Select Object – White Rabbit

Click on the down arrow next to this.madHatter and pick this.whiteRabbit as the current object. This will

show the procedures (actions) that White Rabbit knows how to do.

Call Procedure - say

Click on the left area of the block this.whiteRabbit say… and drag it to the myFirstMethod() window. Enter

a custom string for White Rabbit to say to Mad Hatter like “She’s late!”

Select Object – Cheshire Cat

Click on the down arrow next to this.whiteRabbit and pick this.cheshireCat as the current object. This will

show the procedures (actions) that Cheshire Cat knows how to do.

Call Procedure - moveToward

Click on the left area of the block this.cheshireCat moveToward… and drag it to the myFirstMethod()

window. Select this.teaTable and then Custom DecimalNumber. Type in "60" to move Cheshire Cat

forward 60.

Page 11: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

THE CODE WILL LOOK THE FOLLOWING PICTURE WHEN YOU ARE DONE.

Page 12: Alice Tutorial - WordPress.com · 2014-10-07 · ALICE TUTORIAL Introduction to Alice 3. STEP 1: SET UP THE SCENE In this step you will open Alice and setup the scene. To set up a

Step 3: Challenge!

Do together

__________ (character 1) turns to face the camera

__________ (character 2) turns to face the camera

Now, add to the animation you created or create a new animation of your own! Use the fill in the blank model below to

create your storyline or play around in Alice and see what you can create!

Things to add to your animation:

• Sound: Add background music to your animation (HINT: Add an audio procedure to the this.ground object)

• Different camera angles: Make the camera zoom in on each character while they are talking (HINT: Add a procedure to

the this.camera object)

• More Characters: Add the Queen of Hearts or some other characters

• More props: Make the scene more interesting by adding more props like trees

• More Dialogue: Make Cheshire Cat join the conversation

• More Action: make the characters move around in the scene more

• Move the props: Can you make the tea cups jump around the table?

Remember your steps:

• Set up your scene: Add props and characters

• Program your objects: Add different procedures to your props and characters.

ANYTHING YOU ADD TO THE SCENE CAN BE PROGRAMMED!

Do in order

___________ (character 1) turns to face the ___________ (character 2)

___________ (character 1) moves forward ___ (number) meters

___________ (character 1) says "______________________" (play audio optional)

___________ (character 2) says "______________________" (play audio optional)

___________ (character 1) says "_____________________" (play audio optional)