Class: Events

Phaser. Events

The Events component is a collection of events fired by the parent game object.

For example to tell when a Sprite has been added to a new group:

sprite.events.onAddedToGroup.add(yourFunction, this);

Where yourFunction is the function you want called when this event occurs.

Note that the Input related events only exist if the Sprite has had inputEnabled set to true.

Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Fri Mar 28 2014 01:41:28 GMT-0000 (GMT) using the DocStrap template.