I can’t find any information on multitasking. Is it supported?
How can it be implemented?
Thanks [import]uid: 8192 topic_id: 4860 reply_id: 304860[/import]
I can’t find any information on multitasking. Is it supported?
How can it be implemented?
Thanks [import]uid: 8192 topic_id: 4860 reply_id: 304860[/import]
in terms of what? [import]uid: 6645 topic_id: 4860 reply_id: 15622[/import]
via touch/drag/etc. events, runtime events, enterframe, and collision events [import]uid: 7197 topic_id: 4860 reply_id: 15629[/import]
Sorry. I mean multiapp, multitasking. Meaning when you press the home button or go to safari from your app and come back the app is in the same state. Right now it starts back up again. [import]uid: 8192 topic_id: 4860 reply_id: 15640[/import]
I think it’s not supported right now…
But you could save the state of your app in a file and when it resumes reload it… it depends by the complexity of your app, sometimes it’s quite hard to save all the variables and resume everything (especially if you didn’t consider this feature when you started developing the app) [import]uid: 9158 topic_id: 4860 reply_id: 15689[/import]
As of Build 484, there is now support for this. All you need to do is add the following line into your build.settings:
[blockcode]
settings = {
iphone =
{
plist =
{
UIApplicationExitsOnSuspend = false
}
}
}
[/blockcode] [import]uid: 52430 topic_id: 4860 reply_id: 32380[/import]
That’s a great improvement, Jon, but there anyway to keep audio playing while an app is suspended? We are developing a number of apps with extended audio sections and it would be great if when the user locks the screen it continued playing. [import]uid: 2646 topic_id: 4860 reply_id: 32429[/import]
As of Build 484, there is now support for this.
oh sweet, I didn’t notice! I was so dazzled by the addition of GameCenter that I missed this.
Just last night I finally finished writing code to load game from saved state in case the game gets interrupted by a call; I suppose multitasking makes that redundant, oh well. [import]uid: 12108 topic_id: 4860 reply_id: 32448[/import]