Hello, i would like to know if i can show a banner, hide it and show it again between some scenes.
To be more precise, i need to show a banner in the menu and level selection, hide it in the game, show an interstitial ad after x lose in game over function and if the player go back to the menu show a banner again.
Now, i can only show the banner in the menu and level selection and i can hide it, i can’t show the interstitial ad but that’s the same problem with the banner.
it work one time :
require ads=("ads") some code ads.show( "banner", { x=0, y=0,appId=bannerID,testmode=true } ) function scene:createScene( event ) some code end
and the problem :
require ads=("ads") some code function scene:createScene( event ) some code ads.show( "banner", { x=0, y=0,appId=bannerID,testmode=true } ) end
when i try like that, everything work but it display nothing. when i try adding it in the view, it display nothing and i have a bug "error table expected … have used a ‘.’ instead of a ‘:’ "
mmmmh i will try to see with composer if it work or not.
thanks for reading my problem and trying to find how to resolve it. ^^"