Skip to content

Commit

Permalink
Tween.isNumberTween is a new boolean property that tells if the Twe…
Browse files Browse the repository at this point in the history
…en is a NumberTween, or not.
  • Loading branch information
photonstorm committed Jan 2, 2025
1 parent 75628e3 commit 38d976e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tweens/tween/Tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ var Tween = new Class({
* @since 3.60.0
*/
this.totalProgress = 0;

/**
* Is this Tween a Number Tween? Number Tweens are a special kind of tween that don't have a target.
*
* @name Phaser.Tweens.Tween#isNumberTween
* @type {boolean}
* @default false
* @since 3.88.0
*/
this.isNumberTween = false;
},

/**
Expand Down

0 comments on commit 38d976e

Please sign in to comment.