Make plugin run once instead of On Start of Layout...?

0 favourites
  • 3 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • I've just bought the UltimateAds plugin from the Scirra store - it all works fine, great little plugin.

    The way the support video shows how to implement it is as follows:

    System > On Start of Layout > UltimateAds > Load a banner ad
    UltimateAds > On banner loaded > UltimateAds > Show the banner ad
    [/code:2oxg0q2m]
    However, the game app I'm developing has [i]really[/i] short rounds and at the end of each round the layout is restarted, meaning the banners would be reloaded each time.
    
    I don't want to fall foul of Google/Admob by having hundreds of banners load each gaming session - so what condition/action combination would I need to make the banners load and work normally instead of On Start of Layout?
    
    Thanks all.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use a global variable to keep track of whether it has run or not. Or as a counter.

  • You can use a global variable to keep track of whether it has run or not. Or as a counter.

    Yep - nice one - didn't think of that. Works a treat now.

    Thanks

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