I want to try to get my daughter’s adventure games onto the app store.
I’ve imported my app to Xcode, and it mostly runs great.
One thing though: I play looping music in my app, and when the app goes to the background (like when you switch apps or leave an app and go to the home screen) the music keeps playing.
How do I make the music mute itself when the app is in the background, and then turn itself back on when it becomes the main app again?
I think it’s important for Codea apps to be able to detect when this event (along with the close event) happens so we can ensure the app state is set correctly.
@UberGoober, I use looping music in my exported projects (not called from setup), and if you exit the app it keeps playing for a few seconds, but then it fades out.