Revision as of 19:16, 20 April 2012 by Corrina
In contrast to the See Condition, the See-a condition picks out all the shapes of a given agent. Use it to identify an agent regardless of the way it looks.
direction: the direction to look for the target agent
agent class name: the type of agent to look for
|Optional Parameters:||Layer parameter: the See-a condition can check to see if the specified agent exists in a layer other than the current layer the agent resides on.|
|Example:||If the Frog agent in the Frogger game sees a Truck agent to its left (no matter how the truck looks like), it will collide with it and plays a sound, changes to look like the dead frog, waits half a second, erases itself, decrements the Lives counter and broadcasts to the frog_generator to create a new Frog at the start.|