Ads remove upon small fee?

Jovial Games

  • Posts: 132
Hello everyone, as the topic suggests I was wondering if we can remove ads in an app made from stencyl..

Like some games on the app store,is it possible to make a system in Stencyl that the game that has ads,if a user wants to remove the ads he pays a small fee and the ads are immediately removed?
If this is possible,how can I make such system in stencyl?

colburt187

  • *
  • Posts: 2416
Yes its possible, stencyl has blocks for in app purchases. You create the IAP on iTunes connect then you use the blocks in stencyl to check if the IAP has been purchased.

Then you do something like this,

If purchased product with id (remove ads)= false
Show adverts

Jovial Games

  • Posts: 132
I'm new to this so could you be more detailing on how I can use the blocks correctly when removing the ads? I have the app with admob ads

MrD69

  • Posts: 235
Use a global variable call it Ads and set default to True. Then only call the Admob Blocks if Ads is true. Set up a purchase using the guides on Stencylpedia to do do. Once the purchase is completed, Turn Ads to false and save immediately. The variable will now remain False every time you load the game.
Games: Arrow Mania, Breakout/Outbreak, Water Drop

stefan

  • *
  • Posts: 2263
Keep in mind that you need a stencyl license to do this!!!

Jovial Games

  • Posts: 132
Guys I still need help,please be thorough cuz I'm very new to in app purchase.
The thing is I know how to set up IAP..I just don't know how to set up the system that starts and turns off the ads.

Should I make a game attribute and that should be a boolean? ( For reference purpose I'll name is ''ads1''

Then I do something like

If ads1 = true
initiate admob interstitial ad
show admob interstital ad

and then I make another one with IAP after it checks

If ads1 = false
(now here,what do I add in next?)
How can I make a command to remove the ads?

colburt187

  • *
  • Posts: 2416
Ive attached a screenshot of what my setup normally looks like.