iAP question...help appreciated

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited August 2012 in Working with GS (Mac)
Hey,

I wanna use iAP in my next game. So I set all up like in the GS cookbook. I have a recognizing
attribute which simply gets set to true when the item is bought. But when I use iAP and then decide
to cancel and not to buy, the attribute although get's set to true...Is there a way to make this attribute
related to the iAP..?

thx

Comments

  • gurechangurechan Member, PRO Posts: 211
    Where are you sending the user if they cancel? Be sure to send them to a screen that doesn't contain the rule to set the attribute to true. Ideally you would send them to a specific "cancelled" screen with some message prompting them to return to menu or something.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    edited September 2012
    Thank you :) I am sending him to no screen right now because I wanna avoid a new scene being loaded, but it seems I have to xD

    Still one problem.

    My rule:
    touch is pressed and coins > 80
    bought to true

    otherwise

    iAP
    change bought to true into the iAP rule

    Since I can't put "bought to true" into it, I always get's set true, even if canceled. How can I change that or what ways can I go?

    thx @gurechan
  • gurechangurechan Member, PRO Posts: 211
    How are coins collected/earned? Can they only be purchased via iAP?

    Basically, if you have an attribute "bought" then this should only be triggered/set via the successful purchase through iAP. This would be the "success" screen you set in the iAP action, and not via any other rule.
Sign In or Register to comment.