how to make an in app purchase remove iads?
reginald.bernardin
Member Posts: 346
hello is there a rule that when purchases an in app, it removes all iads in the game. is this possible for gamesalad?
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
and make it an attribute is a little difficult for the game to relate is to iads
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
Need Help? Email Me | Templates | Full Game Source Code
Need Help? Email Me | Templates | Full Game Source Code
www.marcosriffel.com
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
www.appdore.com || appdore twitter || appdore facebook
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
When game.noads = false
--show iAd
Then you need to make an IAP behavior that is non consumable and sets game.noads to true.
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
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS