-
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 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
ao:
{
i:'switch',
w:16,
h:16,
a: null // animation object
}
}