Can you run a function when a particle emmiter is complete?

I just wanted to know if there was a way to run, for example, a function after a particle emmiter had completed. If you know a way to do so, it would be appreciated if you tell!

I don’t know if there’s a specific function for that but you can use duration to trigger an event or check for state. Here for more - https://docs.coronalabs.com/api/type/EmitterObject/index.html#properties

This would be a real nice feature to have a callback on complete (like transitions do). For now I just use a timer.

1 Like