in mono Posted August 18, 2015 Share Posted August 18, 2015 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/iTbKujZuI'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. stupot 1 Link to comment Share on other sites More sharing options...
Recommended Posts