new Events(sprite)
Parameters:
Name | Type | Description |
---|---|---|
sprite |
Phaser.Sprite | A reference to Description. |
- Source:
Members
-
onAddedToGroup
-
- Source:
Properties:
Name Type Description onAddedToGroup
Phaser.Signal This signal is dispatched when the parent is added to a new Group.
-
onAnimationComplete
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onAnimationComplete
Phaser.Signal This signal is dispatched when the parent has an animation that finishes playing.
-
onAnimationLoop
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onAnimationLoop
Phaser.Signal This signal is dispatched when the parent has an animation that loops playback.
-
onAnimationStart
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onAnimationStart
Phaser.Signal This signal is dispatched when the parent has an animation that is played.
-
onDestroy
-
- Source:
Properties:
Name Type Description onDestroy
Phaser.Signal This signal is dispatched when the parent is destoyed.
-
onDragStart
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onDragStart
Phaser.Signal This signal is dispatched if the parent is inputEnabled and receives a drag start event from a Pointer.
-
onDragStop
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onDragStop
Phaser.Signal This signal is dispatched if the parent is inputEnabled and receives a drag stop event from a Pointer.
-
onEnterBounds
-
- Source:
Properties:
Name Type Description onEnterBounds
Phaser.Signal This signal is dispatched when the parent returns within the world bounds (only if Sprite.checkWorldBounds is true).
-
onInputDown
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onInputDown
Phaser.Signal This signal is dispatched if the parent is inputEnabled and receives a down event from a Pointer.
-
onInputOut
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onInputOut
Phaser.Signal This signal is dispatched if the parent is inputEnabled and receives an out event from a Pointer.
-
onInputOver
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onInputOver
Phaser.Signal This signal is dispatched if the parent is inputEnabled and receives an over event from a Pointer.
-
onInputUp
-
- Default Value:
- null
- Source:
Properties:
Name Type Description onInputUp
Phaser.Signal This signal is dispatched if the parent is inputEnabled and receives an up event from a Pointer.
-
onKilled
-
- Source:
Properties:
Name Type Description onKilled
Phaser.Signal This signal is dispatched when the parent is killed.
-
onOutOfBounds
-
- Source:
Properties:
Name Type Description onOutOfBounds
Phaser.Signal This signal is dispatched when the parent leaves the world bounds (only if Sprite.checkWorldBounds is true).
-
onRemovedFromGroup
-
- Source:
Properties:
Name Type Description onRemovedFromGroup
Phaser.Signal This signal is dispatched when the parent is removed from a Group.
-
onRevived
-
- Source:
Properties:
Name Type Description onRevived
Phaser.Signal This signal is dispatched when the parent is revived.
-
parent
-
- Source:
Properties:
Name Type Description parent
Phaser.Sprite The Sprite that owns these events.