Example 4
When a character enters or leaves a cell where an Event was defined, it fires the fCharacter.EVENT_IN and fCharacter.EVENT_OUT events. The whole XML Tag will be passed to the Listeners, so you can add custom attributes and parameters to your events. In this case I define a teleport event that my class will parse and use to load another scene.
XML events allow to change events in your scenes from its definitions, instead of handcoding the conditions into your game.
