how to make an in app purchase remove iads?

hello is there a rule that when purchases an in app, it removes all iads in the game. is this possible for gamesalad?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Just put you ads behaviors in a rule with a Boolean change it to true to turn off ads
  • reginald.bernardinreginald.bernardin Member Posts: 346
    i think i did and it did not work
  • reginald.bernardinreginald.bernardin Member Posts: 346
    there's not actor called turn offs ads though
    and make it an attribute is a little difficult for the game to relate is to iads
  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    Create a Boolean attribute, call it "No Ads"
    Create an actor for your ads

    Create a rule inside that actor, If Attribute No Ads is False
    Display Ads
    Otherwise: Do Nothing or Destroy Actor

    Hope this helps
  • reginald.bernardinreginald.bernardin Member Posts: 346
    @bjandthekatz oh ok but what rule do i put in the in app actor to trigger it when they purchase it?
  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    Just put the default iAp purchase, and change attribute NoAds.
  • RiffelRiffel Member Posts: 1,272
    create a game.ads atribbute then make a non-consumable inApp change the game.ads atribbute value. just it. your GS account is Pro? this behavior is pro only
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    8-}
  • reginald.bernardinreginald.bernardin Member Posts: 346
    I'm sorry maybe i'm not explaining right i think. I iads display in each scene. But i also have an inapp called bonus content. when you purchase bonus content it gives you an extra stage and i want the i ads to be turned off. the rules you gave me i put them it and it doesn't really work
  • iamcarteziamcartez Houston, TexasMember Posts: 648
    Do you want the ads turned off altogether or just on that extra stage?
  • reginald.bernardinreginald.bernardin Member Posts: 346
    @iamcartez I want the extra stage to be unlocked and turn off ads.
  • reginald.bernardinreginald.bernardin Member Posts: 346
    altogther
  • reginald.bernardinreginald.bernardin Member Posts: 346
    I want iads turned off completely for each scene when they purchase the bonus content. it's like they get an extra stage and no iads appear in each scene.
  • reginald.bernardinreginald.bernardin Member Posts: 346
    Sorry thanks for everyone's help, i just could not understand...lol
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    i see three good solutions for this problem, did you have trouble implementing them?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah I think you are simply not implementing it right. First make sure you only have one iAd behavior in the entire scene. Then put that behavior in a rule that says

    When game.noads = false
    --show iAd


    Then you need to make an IAP behavior that is non consumable and sets game.noads to true.
  • reginald.bernardinreginald.bernardin Member Posts: 346
    ok i will try
  • reginald.bernardinreginald.bernardin Member Posts: 346
    i need to make an in app behavior inside the iads actor or the bonus content actor?
  • WingmanappsWingmanapps Member Posts: 458
    hhhmm - lets bend this in neon.

    Start by deleting all related rules so we make sure you dont have any bad rules messing it all up.
    --------------------------------------------------

    1. Create a new game.attribute integer called "No ads" by default it is set to 0. leave it like that.

    --------------------------------------------------

    2. Go to your "iads display actor"
    Create a new rule
    If game.no ads = 0

    Now put in your iads behavior here
    And make sure to put the actor in the scene.

    The logic is that as long as "game.no ads = 0 it will always show your iads.
    meaning, if you change it to 1 it wil NOT show ads.

    ---------------------------------------------------

    3. Go to your in-app button.
    When touch is pressed
    Then you have 3 options
    Pick success - under succes you put in a "change attribute" behavior saying

    Change.attribute.game.no ads = 1

    ---------------------------------------------------

    After going over this you should be able to make it work.
    I dont think it can be explained in more detail then this.

    If you still have trouble, then I would recommend you going through the cookbook and brush up on some generel knowledge


  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    @-)
  • reginald.bernardinreginald.bernardin Member Posts: 346
    Thanks for the help as always
Sign In or Register to comment.