GameSalad

Ads every X clicks

abuabed84abuabed84 Posts: 331Member, PRO
edited March 8 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, UKPosts: 1,755Member

    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.

  • abuabed84abuabed84 Posts: 331Member, PRO

    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, UKPosts: 1,755Member

    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 Posts: 51Member, PRO

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

  • pHghostpHghost London, UKPosts: 1,755Member

    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.