How to Create a Race Horse Character in MicroWorld EX - dummies

How to Create a Race Horse Character in MicroWorld EX

By Camille McCue

Follow these steps to create one horse character in MicroWorld EX and then add primitive commands to the OnClick field to create its racing motion:

  1. On the toolbar, click the Create a Turtle button. Click on the workspace to hatch a turtle. Drag the turtle to the start of Lane 1.


  2. At the Command Center, type the command seth 90 and click the Enter (Windows) or Return (Mac) key on the keyboard.

    This command sets the turtle heading (seth) — the direction it points — to east (90)


  3. In the Painting/Clipart palette, click the Animation button.


    The Animation button offers animated shapes for your turtle to wear.

  4. Next, you need to add the three animated horses to the turtle. Scroll down to the brown horse shapes. Click the first horse shape and then hold down the Shift key and click the last horse shape.

    All the horse shapes are selected.


  5. In the workspace, click on the turtle.

    The turtle now wears the animated sequence of horses. Note that when the horse is not moving on the screen, you see only one shape.


  6. Close the Painting/Clipart palette by clicking its X button.

  7. Although you can’t see all three horses, you can check that all the horse shapes are in the turtle backpack. Right-click (Windows) or Ctrl-click (Mac) on the turtle and select Open Backpack from the pop-up menu. On the backpack State tab, the Shape field shows the shape names horse5, horse6, and horse7


    Note that the backpack also shows that the horse turtle’s heading is 90 (degrees) from the command you issued in Step 2.

  8. With the horse’s backpack still open, switch to the Rules tab. Type fd random 10 wait 1 in the OnClick field and set it to Forever


The random 10 command generates a number from 0 to 9 each time it’s executed. Each time the horse takes a step, it moves forward a different distance. This creates variation in the speed of the horse, causing the horse to run each race differently.

Randomness creates unique conditions for each race, so any horse can win! The wait 1 command inserts a 0.01 second pause between each movement of the horse, and slows the pace of the running to appear more realistic.