Okay… I have an intro that plays on the first startup of my game. I’m using Storyboard.
I call the gameNetwork.init in my main.lua file then go to my intro scene.
The problem is if I’m not signed in, the sign up drop down menu slides down and covers my intro.
So I tried this…
[lua]
local function initCallback( event )
– “showSignIn” is only available on iOS 6+
if event.type == “showSignIn” then
– This is an opportunity to pause your game or do other things you might need to do while the Game Center Sign-In controller is up.
– For the iOS 6.0 landscape orientation bug, this is an opportunity to remove native objects so they won’t rotate.
– This is type “init” for all versions of Game Center.config.lua
elseif event.data then
loggedIntoGC = true
storyboard.gotoScene( “intro” )
else
loggedIntoGC = false
storyboard.gotoScene( “intro” )
end
end
[/lua]
That would not show the intro until the sign in was complete but now anytime I quit the app and resume, it moves to that scene.
I also tried to move the init() code to my menu scene which comes after the intro but then Game Center doesn’t work at all.
Any ideas?