Hi,
I was looking at adding in the game distribution asset so I could publish my game with them.
My game uses a controller proxy to load either the menu or game proxies.
I was hoping to pause the game proxy using the time step when an advert comes in…
I find their site frustrating… if I upload a new version the old one plays in the iframe… if I leave it an come back a day later perhaps it will have updated. I do see the adverts when I call them… but then afterwards just a black screen. How can this be debugged ?
function initAdverts()
if(sysinfo.system_name == "HTML5")then
if gdsdk then
gdsdk.set_listener(
function(self, event, message)
print(event, message)
if event == gdsdk.SDK_GAME_PAUSE then
-- pause your game
msg.post("#sound", "pause_sound")
msg.post("controlCentre:/controller#gameProxy", "set_time_step", {factor = 0, mode = 1})
elseif event == gdsdk.SDK_GAME_START then
-- resume your game
msg.post("#sound", "resume_sound")
msg.post("controlCentre:/controller#gameProxy", "set_time_step", {factor = 1, mode = 0})
end
end)
end
elseif(sysinfo.system_name == "Android")then
initUnityAds(self, UnityGameIDs[sysinfo.system_name])
end
end
That does not seem to work… the screen is just going black after the advert.
The pause and resume messages work fine elsewhere in my game…
Could be that loading the game proxy is causing the issue… although that works fine on android and windows.