Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Default.png question
Started by bonesmalone133 Nov 25 2010 12:56 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bonesmalone133

[GLOBAL: userInfoPane.html]
bonesmalone133
  • Contributor

  • 139 posts
  • Corona SDK

I am having kind of a weird issue with my game loading up on my iphone after the game has already been played at least once on the phone. While the game is loading instead of showing my Default.png file while loading up it shows the last frame of the game when I had exited it last.

Loading up my game for the first time after transferring it to the phone (or after restarting iphone) I see my Default.png file just fine. But if I then exit out of the game and reload it I don't see that default.png file, I see the last frame of the game as it was when I exited it last, any suggestions on why this would be happening?

Thanks for any help you can provide.
uid: 5786 topic_id: 3999 reply_id: 303999


[TOPIC: post.html]
#2

firemaplegames

[GLOBAL: userInfoPane.html]
firemaplegames
  • Contributor

  • 182 posts
  • Corona SDK

That is an issue with Corona not supporting multitasking yet.

In the meantime, add UIApplicationExitsOnSuspend = true to the iPhone plist section of your build.settings file:

settings =
{
        orientation =
        {
                default = "portrait"
        },
 
        iphone =
        {
                plist =
                {
                        UIApplicationExitsOnSuspend = true
                }
        }
 
        
}
That will force the game to restart properly every time.
uid: 8444 topic_id: 3999 reply_id: 12093


[TOPIC: post.html]
#3

bonesmalone133

[GLOBAL: userInfoPane.html]
bonesmalone133
  • Contributor

  • 139 posts
  • Corona SDK

Thanks! Worked great, just what I wanted.
uid: 5786 topic_id: 3999 reply_id: 12117



[topic_controls]
[/topic_controls]