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:, 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 Mon Feb 24 2014 01:12:25 GMT-0000 (GMT) using the DocStrap template.