TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Ads remove upon small fee?
Pages:
1
Ads remove upon small fee?
Jovial Games
Posts: 132
May 25, 2016, 12:53:33 pm
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
May 25, 2016, 01:17:45 pm
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
May 25, 2016, 02:11:03 pm
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
May 25, 2016, 02:19:26 pm
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
May 25, 2016, 04:07:50 pm
Keep in mind that you need a stencyl license to do this!!!
Jovial Games
Posts: 132
May 28, 2016, 12:54:55 pm
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
May 28, 2016, 01:05:47 pm
Ive attached a screenshot of what my setup normally looks like.
Pages:
1