Remove iAd on game pause?

richcoyrichcoy Member Posts: 211
edited March 2012 in Working with GS (Mac)
I have an iAd set up at the top of my start screen. When I test my game in GameSalad the iAd goes away when the app is put into pause, on the device however the iAd continues to show on the pause screen. Is there a way to remove an iAd after it's displayed? I'm showing some content on the pause screen and it's getting covered up by the iAd.

Thanks for any help you can offer.

Rich

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hi there,

    I haven't played with iAds to much, but from what I've seen, if you put the behavior on the background, it will show up on the background. So if your pause scene has your background, the iAds will show.

    Hope that helps
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    You can try to put the iAd behavior in a new actor and then before the pause behavior happens you can destroy that actor.

    I never tried it so I don't know if the Ad will go away after the actor that triggered it is no longer in the scene.
  • richcoyrichcoy Member Posts: 211
    Thanks Mark that worked. I added a controlling actor off screen that spawns an iAd displaying actor if the game is not in pause mode. In the iAd displaying actor I have a destroy this actor behavior if the game is put into pause. I've done limited testing on the device but it seems to be working.

    Seems like this would also work if you wanted to put all of your game in one scene but only show an ad on certain sections of the game.

    Rich
Sign In or Register to comment.