Jump to content

Discover Phaser book source code problem with tween loop on latest Phaser version


Recommended Posts

I searched around here but was unable to find this in the topics already so I'm posting it here. I've run through the Discover Phaser book and noticed that while doing a tween loop there's a stutter or jump during the loop.


This is with version 2.3.0. If I use the version that came with the book download (2.0.5) then it doesn't have this problem. I can simply drag/drop in the latest phaser.min.js into the working example and it starts to break.


See the attachment here for problem - no good way to explain it without seeing it.


"Press the up arrow key to start" stutters. 


Code doing this (smooth in 2.0.5, stutters in 2.3.0).


Anyone else seen this type of problem or know what to do about it in 2.3.0?

var startLabel = game.add.text(game.world.centerX, game.world.height-80,            text, { font: '25px Arial', fill: '#ffffff' });        startLabel.anchor.setTo(0.5, 0.5);        game.add.tween(startLabel).to({angle: -2}, 500).to({angle: 2}, 500).loop().start();

Attachment too large for here so I uploaded to imgur. Here's a direct link to the full res where it is most apparent. 

Link to comment
Share on other sites


  • Recently Browsing   0 members

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