Bot Object

See Also Properties Methods Events Model
World
Bots
Bot
BotShape
ColorTable
Pen
Tags
Text
ViewField

A programmable moving object that can interact with other objects.

Using the Bot Object

All Bot objects belong to the Bots collection object. Additionally, a Bot object can belong to one or more Group collection objects.

Example

The following example randomly moves all Bot objects in the Bots collection and changes their color to red when they are located on the left side of the display area and to blue when they are on the right side.

Bots.TurnRand -15, 15 
Bots.Step
For Each Bot in Bots
   If Bot.X < World.Screen.Center.X Then
      Bot.Color = vbtRed
   Else
      Bot.Color = vbtBlue
   End If
Next Bot