Tile Instance Triggers

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
e2easy
Posts: 6
Joined: 18 Nov 2008, 04:02

Tile Instance Triggers

Post by e2easy »

I've set up some Tile Instance Triggers within the Editor. How do I pick these up in ActionScript?

for example, if I set an avatarGo event, with no target, and a parameter, is there an AvatarEvent.avatarGo, or AvatarEvent.AVATAR_GO event? It's not documented? Is my ActionScript something like..

os.addEventListener(AvartarEvent.avatarGo,avatargofn);

Is there a "parameter" property, to pick up the parameter? What's the syntax here?

Is there an example somewhere? Or is this all something that's going to be in the next version?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

As written in the Editor's documentation, the "triggers" feature is not used inside the current version of the OpenSpace Engine. Now all the tiles fire all AvatarEvents, as shown in the provided examples.
The next major release of OpenSpace will make use of this feature to optimize the dispatching of events.
Paolo Bax
The SmartFoxServer Team
Post Reply