As seen in the
anatomy of a behavior page, the action definition panel describes what actually executes when the behavior is run. All of the actions, operators, and object references can be dragged out of the input browser and dropped into the action definition panel.
The UI is completely drag and drop. Actions, objects, attributes, and functions are presented in a navigator and dragged into the behavior editor. For example, the following sets the orientation of the
Activeactive Objectobject to zero:

If I want to change the right-hand side from “0″ to some other value, say a copy of another object’s attribute, I simply drag in that attribute:
1. Initially, I can type in a value for orientation.
2.Instead, I’m dragging over the circle’s orientation attribute.
3. Now my orientation is set equal to the circle’s orientation.

But what if I want to add something to the right-hand side? Select a math function from the
inputlogic browser by clicking the Math
tab:Andtab and simply drag it onto the value::1. DragDragging the plus function and drop on circle’sspaceship’s orientation.2.Theorientation existingwill value,automatically circle’spre-populate orientationthe first element becomesof the firstplus statement with whatever argument.was underneath it.
The comprehensive set of mathematical functions allows any equation to be created. The logic for boolean operations is similar. Conditional statements are formed by dragging over logic blocks.blocks Again, a comprehensive set of boolean operations allow creation of arbitrary logic.Notice that the boolean functions are displayed with a diamond shape that fits into the IF and and statements. This shape conveys to the user visually where a given function or attribute can be dragged. The same shape is used for attributes. The boolean attributes below, such as ignore_collisions, have the same diamond shape.The end result is an editor that provides comprehensive functionality in a straightforward drag and drop interface.