Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweens with array properties are misbehaving #1619

Closed
FridayMarch26th opened this issue Feb 12, 2015 · 1 comment
Closed

Tweens with array properties are misbehaving #1619

FridayMarch26th opened this issue Feb 12, 2015 · 1 comment

Comments

@FridayMarch26th
Copy link

I've encountered problems chaining and yoyoing tweens that have array properties.

The cause appears to be the way that TweenData vStarts and vEnds are concatenated to create various effects.

As a(n unfortunately) broad example, a parent property {x: [0,50,50,100]} could end up with a child property {x: [[0, 50, 50, 100], 100, 100, 200]}, which prevents the child property from being read correctly.

photonstorm added a commit that referenced this issue Feb 16, 2015
…akes the Tween interpolate through each value specified in the array using the defined Tween.interpolation method (see new example, thanks @FridayMarch26th #1619)

Tween.interpolationFunction was using the incorrect context to invoke the function. This is now defined in `TweenData.interpolationFunctionContext` and defaults to `Phaser.Math`. If you provide your own interpolation function then please adjust the context accordingly (thanks @FridayMarch26th #1618)
@photonstorm
Copy link
Collaborator

This is now fixed in dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants