Is there a way to place an ad without a change scene or restart game rule?
DeliriousSanity
Member, PRO Posts: 3
If so what is it? if not i'm trying to place an ad every 3 times the game restarts. Because the game is similar to flappy bird in the fact that you'll die over and over again it gets pretty annoying watching a 30sec ad every 5 seconds. Any idea of how to accomplish this?
Comments
You can use the Pause Game behavior to display ads.
Otherwise, if you're already using a Change Scene behavior to -- for example -- go from the menu scene to the gameplay scene, insert your ad there:
Load Attribute game.restartCount key: restartCount
When Touch is Released
Change Attribute game.restartCount to game.restartCount+1
Save Attribute game.restartCount key: restartCount
When [numeric expression] mod(game.restartCount,3) = 0
Change Scene [scene name] with Interstitial Ad or Reward Video Ad
Otherwise
Change Scene [scene name] with No Ad
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User