question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sprite in ParticleContainer can not animate alpha value

See original GitHub issue

sprite in ParticleContainer can not animate alpha value I have set { alpha: true } It can be 0 or 1, but can not be 0.5, 0.6 etc… Please Help. Thank you very much!!!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
ivanpopelyshevcommented, Feb 7, 2018

Its not about alpha, you just used several textures in ParticleContainer, and it can show sprites only from same atlas. Please use texturePacker or manually pack it and create PIXI.Textures for them

If you want a performance boost, you have to satisfy all the conditions or else optimization will crash.

1reaction
ivanpopelyshevcommented, Feb 7, 2018

I take it, you want one ALPHA property that does everything. Unfortunately, this place of pixi is not written by telepaths, you have to read docs and sources to understand what means

  1. alpha of container
  2. alpha of element
  3. options “alpha” aka “tint”

ParticleContainer is one of optimizations that require to think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PIXI.ParticleContainer - PixiJS API Documentation
ParticleContainer implements the basic object transform (position, scale, rotation) and some advanced functionality like tint (as of v4.5.6).
Read more >
PIXI.ParticleContainer support · Issue #7 · pixijs/particle-emitter
Hi, Is it possible to use this with the new PIXI.ParticleContainer? I've tried, but cant really get a good result (bad preformance).
Read more >
How to get Pixi Particles to behave properly when set as a ...
I passed the emitter to the container so it could update its transform. I needed to calculate the original point of the sprite...
Read more >
Sprites - PixiJS
Alpha is a standard display object property. You can use it to fade sprites into the scene by animating each sprite's alpha from...
Read more >
Cannot change the texture of sprites in a ParticleContainer
I want to create animated particles inside a particle container but, when i try to change the texture of an sprite for other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found