Game Almost Complete...How Do I Add Chartboost to the game iOS

hzappshzapps Member, PRO Posts: 173

Aloha. I hope that you are having a great day. I am rounding the corner on an app for iOS and am wanting to add Chartboost ads. I have used the old apple ads years ago with game salad. But can you lead me in the right direction for adding ads now? I would want it to appear after i have a specific integer reach say 6 . Do I put into an actor ... "When the attribute equals or greater than 6 ? what next.... Do i use the Change scene and allow the interstitial ads?

Comments

  • bob loblawbob loblaw Member, PRO Posts: 793

    so i'm just thinking out loud here and haven't put one of these into practice yet but maybe:

    your attribute 'ShowAd' (or whatever you call it) is read as a stored value on a rewritable table, which defaults as 0 when the game is installed or reset. the value should be read from the table it is stored whenever the game starts. i am also guessing your change scene happens when a button is pressed?

    try:
    rule (if pressed)
    change attribute ShowAd to ShowAd+1
    Rule (nested within the press rule)
    If attribute ShowAd = 6
    change attribute ShowAd to 0
    save attribute ShowAd to the table cell where the value should be stored
    change scene (with ad)
    otherwise
    save attribute ShowAd to the table cell where the value should be stored
    change scene (without ad)

    hope it works because i will probably use it on a future game at some point.

Sign In or Register to comment.