Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Tweening a Sprites filter properties yields "n is undefined" #14

Open
petcarerx opened this issue Jun 19, 2018 · 0 comments
Open

Tweening a Sprites filter properties yields "n is undefined" #14

petcarerx opened this issue Jun 19, 2018 · 0 comments

Comments

@petcarerx
Copy link

Setup:

//using a PIXI.Sprite:
sprite.filters=[new PIXI.filters.BlurFilter()];
//setup a tween for the blur property of the [0]'th filter, at first i tried { filters : [ { blur : 0.2 } ] } to no avail, then i tried:
tween 'from': { alpha: 0, y: 0, "filters[0]": { blur: 0.2 } }
'to':  { alpha: 1, y: -10, "filters[0]": { blur: 0.0 } }

That appears to work, but blows up the console with 'n is undefined' with below stack trace.

at u Line 1:4632 in pixi-tween.js
at u Line 1:4561 in pixi-tween.js
at value Line 1:7858 in pixi-tween.js
at value Line 1:6819 in pixi-tween.js
at value Line 1:9018 in pixi-tween.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant