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 Tue Apr 29 2014 14:51:22 GMT+0100 (BST) using the DocStrap template.