Moves the object forward.
object expression.Step ([Distance])
object expression Required. An object expression that evaluates to an object in the Applies To list.
Distance Optional Double. Distance to move. The default is set to the value of the Speed property.
The new location is dependent of the Bot object's initial location, its heading, and its speed.
The Bounds property of the Screen object determines the way Bot movement interacts with the edges of the Screen display area.
Use the TurnRand method in conjunction with the Step method to give the Bot the appearance of random movement.
In the following example, a Bot draws three lines 120 degrees apart from a central location, placing a clone of itself at the end location of each line. The speed of the clones is set to half of the parent's speed.
Bot.Pen.Down
For j = 1 To 3
Bot.Step
Bot.Clone.Speed =Bot.Speed * 0.5
Bot.StepBack
Bot.Turn 120
Next j