phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Tween Duration is 0 when totalDuration is set in timeline

Open lukasharing opened this issue 2 years ago • 2 comments

It seems that this line does always set to 0 the duration https://github.com/photonstorm/phaser/blob/d67c93646cbfe8ba5997954f8af29a8f3f9e8e91/src/tweens/tween/TweenData.js#L61

lukasharing avatar Jan 26 '22 12:01 lukasharing

Calling .init() seems to calculate each duration

lukasharing avatar Jan 26 '22 14:01 lukasharing

I think that's expected.

samme avatar Jan 26 '22 18:01 samme

Just to say that Timelines have been removed from Phaser 3.60 and replaced with the new Tween Chain system, which enables perfectly sequenced playback. Although this is a breaking change, I feel it was worth making for the benefits it brings (such as fixing issues like this!)

photonstorm avatar Sep 21 '22 17:09 photonstorm