Ads every X clicks

3absh3absh Member Posts: 601
edited March 2017 in Working with GS (Mac)

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

  • pHghostpHghost London, UKMember Posts: 2,342

    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.

  • 3absh3absh Member Posts: 601

    or at least a game pause (which also switches to a pause scene).

    I only have one scene, which i can also choose.
    I'm gonna sign my apk and see what happens

  • pHghostpHghost London, UKMember Posts: 2,342

    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.

  • barleyesqbarleyesq Member Posts: 72

    Do you then have to un-pause once the video is finished? How do you know when, if so?

  • pHghostpHghost London, UKMember Posts: 2,342

    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.

Sign In or Register to comment.