new Tween(target, game, manager)
A Tween allows you to alter one or more properties of a target object over a defined period of time.
This can be used for things such as alpha fading Sprites, scaling them or motion.
Use Tween.to
or Tween.from
to set-up the tween values. You can create multiple tweens on the same object
by calling Tween.to multiple times on the same Tween. Additional tweens specified in this way become "child" tweens and
are played through in sequence. You can use Tween.timeScale and Tween.reverse to control the playback of this Tween and all of its children.
Parameters
Name | Type | Description |
---|---|---|
target | object | The target object, such as a Phaser.Sprite or Phaser.Sprite.scale. |
game | Phaser.Game | Current game instance. |
manager | Phaser.TweenManager | The TweenManager responsible for looking after this Tween. |
- Source code: tween/Tween.js (Line 20)
Please login to continue.