Exca Posted September 2, 2015 Share Posted September 2, 2015 Hi, I have a particlecontainer to which I'm putting lots of sprites. I would need to animate few of these sprites with animation that is also part of the texture atlas. I tried adding Movieclips instead of Sprites but the sprites only get reuploaded if I actually change something in the particle container. Is there some way to mark particlecontainer as dirty to force updates? Or can I somehow tell pixi that sprites texture should be updated.Thanks. Quote Link to comment Share on other sites More sharing options...
xerver Posted September 2, 2015 Share Posted September 2, 2015 You'll need to tell the particle container that the UVs are dynamic. Did you set that property as dynamic in the constructor? Quote Link to comment Share on other sites More sharing options...
Exca Posted September 3, 2015 Author Share Posted September 3, 2015 Thanks, that helped. I'm using the haxe externs for pixi and it had ParticleContainer constructor marked Array<Bool> for properties instead of Dynamic. Changing that and setting the values to correct fixed the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.