Hi all, this might be a noobish question but…here goes.
I have a spritesheet with a few rows of sprites, and I want to pass different sprites into the particle system at various times, based on the user clicking particular buttons. I don’t actually want to animate the sprites in a running sequence, I just want to pass different sprites in to the particle system at different times. So one sprite might be used in the particle system during a certain interval, then much later a different sprite might be used in the same particle system.
I’ve been doing this by following the documentation for using sprites with the particle system here (Animating Particles | Babylon.js Documentation), but I see this documentation assumes that you will be animating through different sprites in a rapid sequence, something which I’m not doing.
In my code, because I just want to use the same sprite while the particle system is running, I end up just doing something like:
particleSystem.startSpriteCellID = 0;
particleSystem.endSpriteCellID = 0;
This “works”, in that I get the behavior I expect. But is it possible to use sprites/spritesheet with the particle system WITHOUT it assuming that I’m trying to animate through certain sprites? I wonder if this animation situation doing something behind the scenes which is a bit overkill given my use case.
Thanks for any help,
Gabe