Tutorial: Lists

By Deborah Nelson
Duke University, July 13, 2008

Under the direction of Professor Susan Rodger

As you follow the instructions below, click on an image to enlarge it.

Then use the'go back one page' arrow in your web browser to come back to this tutorial.

Loading the World

Open a new world, with the template of your choosing. Save it in a directory that you can find again. After you have opened the file, and set up your world, go into the "Layout" mode by clicking on the green button 'Add Objects' (toward the middle of screen)

Click 'more controls.' Click 'drop a dummy at the camera.' Rename the dummy 'originalPosition.' To leave the layout mode, click 'done' This is something you should always do when you make a world in case you need to return the camera to this view later. If you don't understand dummys,look at the camera control tutorial again.

Adding Objects

Part 1: Making a list

Part 2: Writing the method

Step 1: For all together:

Step 2: For all in order:

Step 3: Object part named key:

  1. In the object tree, click on the + beside evilNinja to see that it’s body part is named leftLeg
  2. In the turn backward instruction, click on the box and type leftLeg with the same capitalization and spacing as it appears in the object tree. No blank spacers, and the second L must be a capital letter

The complete method

Step 3: Object part named key:

  1. Click on world in the object tree
  2. Go to the properties tab and click on the box beside characters
  3. Click on new item and select the object you want to add


Fixing the Error

How to remove an object from your list