Hi All,
Does anyone have any advice regarding how to handle pausing and un-pausing my sprite animations when I pause/un-pause my game?
I’m assuming that I’ll use the object:pause() and object:play() methods?
The trick is keeping track of all the objects on screen that currently are animating so that I can stop them when required.
Should I add every object to a master table when I create them and then cycle through that table pausing and un-pausing all members as appropriate?
When an object is removed I’ll remove it from that table as well.
Is there a better approach? I wanted to bounce this off some people to see if I was on the right track.
Thanks 