Yes. cron's non-tagged functions work as before - update(dt) updates all existing entries (no matter their tags), cron.cancel(id) cancels an individual entry, and cron.after & cron.every create non-tagged entries.bartbes wrote:If you use cron.update, does it update all tags too?
There is no way to "update only the non-tagged entries", though. I experimented using cron.tagged() - with no params - but I encountered one case where the logic wasn't quite clear/didn't work for some reason. In any case, that's not a problem I wanted to solve.
The main problems I wanted to deal with where:
- Using cron inside a "game paused" menu - now I can do cron.tagged('pause-menu').update(dt) and the rest of the tags will freeze naturally.
- A complex instance (like an enemy) could have more than one cron entry simultaneously. When the enemy is killed, cancelling all those ids is tiresome. Now cron.tag(self) can create/cancel all the relevant entries for that enemy quite easily (tags can be anything - strings are just one possibility)