Change Action

Definition:

The Change action changes the depiction of the agent in the cell indicated by the Direction parameter to the depiction displayed in the command's Depiction parameter. The dot (.) refers to the agent itself.

The Change action is useful for creating animations.

Parameters:

direction, depiction

Example:

In the Fish Tank simulation, whenever the Fish agent faces forward, there is a 10% chance that it will change to look like the fish going to the left and an 11% chance that it will change to look like the fish going to right.

See the Fish Tank simulation.


| Next | Previous | Reference Manual | Getting Started Manual |