Initial load effects smooth animation

Is there a best practice technique to wait for gamenetwork and ads to pass or fail before running an animation of delivering the menu to a user

I have an animation on my menu screen which is badly affected by the above. Once success or failure is done then the animation runs smoothly. [import]uid: 103970 topic_id: 21771 reply_id: 321771[/import]

I did something like this using storyboard api but not really any joy as it never moves to the main menu

[lua]local function initInneractiveCallback( event )
if event.data then
inneractiveCalledBack = true
movetoMainMenu()
end
end

local function initGameNetworkCallback( event )
if event.data then
gameNetworkCalledBack = true
movetoMainMenu()
end
end

local function movetoMainMenu()
if(gameNetworkCalledBack == true and inneractiveCalledBack == true) then
storyboard.gotoScene( “mainmenu”)
end
end

local function onSystemEvent( event )
if event.type == “applicationStart” then

if(system.getInfo(“environment”) == “simulator”) then
– Load The Remote
storyboard.remote = require(“remote”)
– Start The Remote On Port 8080
storyboard.remote.startServer( “8080” )
– Redirect to the mainmenu
storyboard.gotoScene( “mainmenu”)
else
gameNetwork.init( “gamecenter”, {listener=initCallback} )
storyboard.gameNetwork.init( “openfeint”, “xxxxxxxxxxx”, “xxxxxxxxxx”, “xxxxxx”, “00000”, {listener=initGameNetworkCallback} )

– Initialise inneractive:
if(system.getInfo(“model”) == “iPad”) then
ads.init( “inneractive”, “xxxxxxxxx”, {listener=initInneractiveCallback} )
else
ads.init( “inneractive”, “xxxxxxxxxx”, {listener=initInneractiveCallback} )
end
end

return true
end
end[/lua] [import]uid: 103970 topic_id: 21771 reply_id: 86456[/import]

We have heard this about ads on some older devices and we’re looking into it. [import]uid: 52491 topic_id: 21771 reply_id: 86569[/import]

Thanks Peach

Would you consider an iPhone 4 an older device? Also does it have a case number so I can track via the daily builds for a resolution to see if it sorts my issues

Thanks J [import]uid: 103970 topic_id: 21771 reply_id: 86607[/import]

No, I wouldn’t consider an iPhone4 an older device. I actually tested the ads issue on an iPhone4 and although there was a slight delay (maybe 1/3, 1/2 of a second) that was it.

It’s something another member of the team will be looking at more closely as being far, far away I don’t have access to a whole cache of devices to test on.

RE the bug number I don’t have it to hand but have just sent an email to another member of the team to try and find it for you :slight_smile:

Peach [import]uid: 52491 topic_id: 21771 reply_id: 86640[/import]