"Enable Advertisements" in change scene
justinodunn
Member, PRO Posts: 226
in Tech Support
I would like to ask would advertisements show up everytime that behavior is triggered? Or do they show up randomly like once per every 3 times the behavior is triggered..?
Comments
Every time, if you want the kind of random function you describe you'd have to build that yourself.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Ah I see, how can I do that?
i want to know too.
me too!
My apps in Appstore
The Adventure of Stario : https://itunes.apple.com/us/app/the-adventure-of-stario/id866628626?l=nl&ls=1&mt=8
Fruit Catcher - Catch 'em all : https://itunes.apple.com/us/app/fruit-catcher-catch-em-all/id888480619?l=nl&ls=1&mt=8
Create an attribute let's call it "randomAttribute".
Use the code below where you want to change scene:
Change attribute randomAttribute to random(0,2)
Rule: if randomAttribute = 0
change scene - advertisements enabled
otherwise
change scene - advertisements disabled
Edit:
In the version 0.11.0.13 of GameSalad, you don't need to assign the random value to an attribute. You can use numeric expression and enter the random function there.
do we have to make a loop for that random spawning?