Jump to content

Tween speed different for different computers


Dolan
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...