Ads every X clicks
3absh
Member Posts: 601
I made a mini game and I want to display interstital Ads every 10 clicks and video Ads every 20 clicks.
Note: the click mentioned here does not happen frequently maybe 1 click every 3 minutes or so.
How do i do this? Without changing scene
Comments
For interstitial and video ads, you need to have a scene change, or at least a game pause (which also switches to a pause scene). No way to do it otherwise.
Create a game attribute to keep track of the clicks.
I only have one scene, which i can also choose.
I'm gonna sign my apk and see what happens
The benefit of the pause behaviour is that it won't purge your current scene from memory, thus the player continues where he/she was.
Do you then have to un-pause once the video is finished? How do you know when, if so?
Yes, there is an action for that.
The easiest it to put some text on the screen, saying: "tap to continue!" and activate the unpause on tap.