0 Favourites

iAds-Ejecta-Pause Game when iAd banner is touched / tapped

  • Hi Community,

    I am trying to trigger a pause when the iAd banner is touched. Basically I cannot figure out how to trigger an event when the banner is touched (and a full page ad is displayed). I did create a touch area the size of the banner, however this would not work since the touch area (an probably everything) is below the ad banner (on webview).

    My intention is to pause the game when displaying the full page banner. Currently I am only testing with Apple's test ads.

    I have also enabled the "Pause on unfocus" property, but this, I believe only works on browsers.

    Thank you!

  • Im looking for this answer too!

    I am sure a Construct 2 guru will give us a solution soon...

  • I think the answer will come as JS or objective-c... I cannot see this being solve with any C2 setting or event, although it would be nice!

    I know it can be coded:

    but then you cannot create an event!

    Somewhat puzzled here!

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Getting desperate! I am wondering, Using the code mentioned above, the objective-c code, is there a way to write some variable that can later be accesses from C2. I am thinking that once the ad is triggered, the code above can actually set a variable ("adActive" to true) which I could potentially read from C2 in an event as a condition??

  • Is the game running inside Ejecta or Webkit ?

    For ejecta you would have to first bridge Obj-C with Javascript:

    Then you need a bridge from Javascript to C2 objects. One solution would be creating a custom plugin:

  • Cross_,

    Thank you for your answer.

    I need to try this now! I am using Ejecta.

    I am somewhat surprise that the functionality I describe is not part of the Ejecta/iAds. I would think it would be something everyone who had iAds would want...

    I will let you know if it works.

    Thank again!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)