lebrewer
Is there a cron-like scheduler within the engine? For example, every X frames, execute a callback?
Is there a cron-like scheduler within the engine? For example, every X frames, execute a callback?
This is not exactily what you want, But I have solved similar problem with this approach:
The solution as it is, is not covering cylic events, could be added in the proccesing function, by readding them after being triggered…
Oh, that’s a very interesting approach. Thanks for the snippet!
You are welcome! Let me know if you add the cyclic capability, I will surely use it too.
Thinking it over it is simplier: you just need to restart the time value after expiration&delivery, instead of removing from the Vector.
However the approach would need also a method for cancelation.