Jump to content

Phaser.Tween.yoyo with array of properties - broken?


in mono
 Share

Recommended Posts

Hi there. I stumbled upon a possible bug in Phaser.Tween.yoyo. It might be a mistake in my approach as well.
 
Here's the simplest possible test case: http://phaser.io/sandbox/edit/iTbKujZu
I'm tweening a sprite along a path of points and if I don't use yoyo, it's fine. If I only use a single value for each tweened property (e.g. {x : 300, y : 300}), it's also fine. But if I pass an array of values and use yoyo, the sprite jumps to an unexpected location after the loop.

 

Note: the sandbox is still using Phaser 2.3.0, but that's fine since I'm still using the same version in the game I'm making.

 

Edit: Added an alert at the end of the tween to show the resulting wrong values of x and y. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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