Open ZkHaider opened 8 years ago
I was just reviewing the tickets now that I have some time to work on the library.
For oneShot it does not make much sense to have a callback during onRepeat. Other than that I can see the value for knowing when the animation has ended. I'll probably add it in the update I am working on.
Thanks for sharing!
@plattysoft I was working with your library and I wanted to know when a particle ends or starts, for that I modified the source a little and added a listener inside
ParticleSystem.java
:Source line: ParticleSystem#startAnimator()
The end result looks like this:
ParticleAnimationListener.java
ParticleSystem.java
End Result
Now you can call the
ParticleSystem
with a listener like so:The listener is optional and you can just pass null if you don't care to listen.
Can I do a pull request for this?