MicroWorlds EX™ Lessons
Lesson Five: Inside the Turtle's Backpack: "State" and "Rules"
Step 1: Opening a Turtle's Backpack Each turtle that you hatch has its own backpack to store its own PRIVATE* shapes, procedures and rules. (* This means shapes, procedures and rules that apply to this particular turtle only.) To open any turtle's backpack, just right-click on the turtle itself and choose Open Backpack. When you open a turtle's backpack,
you will open a dialog box with 6 different
tabs
at
the bottom
of the
backpack:
Step 2: The Turtle's Current "State" As you see in the graphic at the right, you can find out a great deal about this turtle by looking at the info on the State page.
|
![]() |
Step 3: This Turtle's Procedures
If you want to write any new commands for this turtle to follow, click on the Procedures tab at the bottom of the dialog box. Here you can type in any commands for THIS turtle only to follow. It will refer to shapes in its own backpack before considering "public" shapes. If any procedure name is duplicated in the common Procedures area for the project, a turtle will also give higher priority to that same command name in its backpack and only follow that private version of the procedure. For more on writing procedures, see the other lessons along the way.
![]() |
Step 4: Creating "Rules" for This Turtle Once you click on the Rules tab at the bottom of any turtle's backpack dialog box, you can create rules for a turtle to follow when faced with several possible conditions:
|
Lesson Six: Creating and Controlling Multiple Turtles
| HTS Home | | | Calendar | | | Classes | | | Departments | | | Resources | | | What's New? | Newsletter |