Dolan Posted November 21, 2015 Share Posted November 21, 2015 Hi everyone, I am trying to use the tween here:var newTween = this.game.add.tween(this).to({ y: height, targetHeight: height }, 5000, Phaser.Easing.Cubic.Out);newTween.start();The tween is fine on my computer, but it runs on different speeds on different computers. My friend (who has a much better computer than me) is experiencing that tween to be roughly 12 seconds, more than double! Please help, Thanks. Link to comment Share on other sites More sharing options...
Tilde Posted November 23, 2015 Share Posted November 23, 2015 There's an option for tweens that you might wanna try out. It makes them frame-based instead of millisecond-based. You can put it in your load state:game.tweens.frameBased = true; Link to comment Share on other sites More sharing options...
Dolan Posted November 24, 2015 Author Share Posted November 24, 2015 Thanks bro! worked like a charm! Link to comment Share on other sites More sharing options...
Tom Atom Posted November 24, 2015 Share Posted November 24, 2015 Sorry, I do not get it... If game.tweens.frameBased = flase; (default), then tween should be time based, which means, that tween with duration 5000 should take 5 seconds regardless of computer or number of updates. I would expect that much better the computer is then closer to 5 seconds the result will be. Link to comment Share on other sites More sharing options...
Recommended Posts