-
Notifications
You must be signed in to change notification settings - Fork 0
Interact
nhmkdev edited this page Jan 5, 2014
·
12 revisions
An Interact entity is one that can:
- Be optionally interacted with by the player
- Change visual state based on Save state
The Interact entity is extended for items such as a leveldoor or a switch.
var Interacts = ig.global.data.interacts;
See Animation Object (State Driven) for details on the ao field.
Interacts.sample =
{
ht:'', // hud text (displayed when the player collides with the interact) (default: '')
d:'', // 'Dialogs.' is prepended to the string. The dialog to open when the player interacts with the entity (default: null)
ao:null // state driven animation object
}
Additionally each animation state can support the a property in an Interact:
a:null // action for this state (on exit) (default:null)
See actions for more information