Behaviors

Behaviors add pre-packaged functionality to object types . They can be added with the Object Behaviors dialog. See the Behavior reference for more information on individual behaviors.

An example of a behavior is the 8 direction behavior. This instantly allows an object to be moved around with the arrow keys. This helps speed up development and increase productivity. Behaviors are not intended to do everything in your game for you: the event system is where the majority of your game logic will be defined. Behaviors are essentially time-savers and shortcuts. Most behaviors can be replicated with events, but it simply is far more time consuming to do so. Behaviors are very customisable, but if a behavior isn't doing quite what you want it to, you can usually resort to reproducing it in a customised way with events.

All instances of an object type use its behaviors. You cannot add a behavior to only some of the instances - they all use the behavior - although you may be able to enable or disable the behavior for individual instances.

Some behaviors add their own properties to the Properties Bar. See the Behavior reference for each behavior's properties

Some behaviors also extend the objects they are added to with their own conditions, actions and expressions. These are shown alongside the object's own conditions, actions and expressions in the Add Condition or Action dialog and Expressions panel.

Behaviors can also be added to Families. All the object types in the family then inherit the behavior.

Tags: