mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 10:18:42 +00:00
Getting startAt
Getting startAt config and using for current
This commit is contained in:
parent
f45ee83fc4
commit
1db9e15a76
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
|
|||
|
||||
var from = GetValue(config, 'from', 0);
|
||||
var to = GetValue(config, 'to', 1);
|
||||
var current = GetValue(config, 'startAt', from);
|
||||
|
||||
var targets = [ { value: from } ];
|
||||
|
||||
|
@ -78,7 +79,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
|
|||
);
|
||||
|
||||
tweenData.start = from;
|
||||
tweenData.current = from;
|
||||
tweenData.current = current;
|
||||
tweenData.to = to;
|
||||
|
||||
data.push(tweenData);
|
||||
|
|
Loading…
Reference in a new issue