Sprite listener with paused sprites?

I tried to use the sprite listener to pause all playing sprites and it works… but now can’t use the listener to “restart” the sprites with :play()… is the listener only listening for active (playing) sprites? How can I restart my paused sprites?

I know I can store the infos in an array or something… but I thought I can use the listener for this. Is this possible… does anybody have tried this?

Thx for your help!

Daniela

Hi Daniela,

If you want to pause/resume all sprites, you should build some kind of reference table to store them. Ultimately, it’s going to be “safer” to manage them this way. Of course, don’t forget to clean out that table when you’re done with it… but you certainly know that. :slight_smile:

Brent

Hi Daniela,

If you want to pause/resume all sprites, you should build some kind of reference table to store them. Ultimately, it’s going to be “safer” to manage them this way. Of course, don’t forget to clean out that table when you’re done with it… but you certainly know that. :slight_smile:

Brent