How would I make an Achievements Screen that works?

ozboybrianozboybrian PRO Posts: 2,102
edited November -1 in Working with GS (Mac)
I have a game where I collect treasure like coins - Gems etc.

How I would set up achievements to be unlocked when 50 gems is collected 100 gems etc

lasted over 200 seconds without dying something like that..

Please be really specific

Thank you : )

Comments

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    Make Bolean for each achievement.
    And make a rule in on actor:
    If GameCoinCounts Greater than 200
    Chane attribute 200CoinsAchivements To True

    Is that simple.
  • ozboybrianozboybrian PRO Posts: 2,102
    MagoNicolas said:
    Make Bolean for each achievement.
    And make a rule in on actor:
    If GameCoinCounts Greater than 200
    Chane attribute 200CoinsAchivements To True

    Is that simple.

    Is it really?

    I don't understand how the game would even know though... how does it know im talking bout the coins?
    I wil try though thanks..

  • ozboybrianozboybrian PRO Posts: 2,102
    No luck, Boolean only comes up with True or False Values
  • AppsRacKAppsRacK Member Posts: 346
    Yes Bool only comes with true or false. This is how you should do it.

    1. First make a Attribute and name it "coinCount" (or whatever u like) and choose integers.
    2. Change this attribute whenever you collected the coins. (you can look at sample templates on how to do this).
    3. Then make another attributes for your achievements name it "Unlock50Coins" (or whatever u decide again) but this time set this one to Bool.
    4. Now on your coin actor make rule that if your "coinCount = 50 change the attribute of "Unlock50Coins" to true.
    5. Now on your unlockable actor. Set what image you like if "Unlock50Coins" is True or False.

    sorry if its a bit confusing. I've just started Gs as well but i hope you got the idea.

    -drahc
  • ozboybrianozboybrian PRO Posts: 2,102
    I think it worked! Does it save it perminatly? cause the actor ( was set to destroy to reveal actor behind it ) and it's staying gone :O cool! I think it's right :D
  • AppsRacKAppsRacK Member Posts: 346
    ozboybrian said:
    I think it worked! Does it save it perminatly? cause the actor ( was set to destroy to reveal actor behind it ) and it's staying gone :O cool! I think it's right :D

    nope it wont save by itself. you need to use the save and load attributes. Tshirtbooth has a good sample tutorial for this one.

  • ozboybrianozboybrian PRO Posts: 2,102
    Hmm,

    It didn't work after all but, It does work, but as soon as I collect one coin it does it, but im trying to do it for when it collects 10.

    do I need to set up an attribute on the collecting actor that's a rule for when the coin is collected InterCoin + 1?

    Thats my best guess unless you know what im doing wrong?
  • AppsRacKAppsRacK Member Posts: 346
    you can set it like this.

    create a rule so that when your actor collide to the coin(if thats how your gameplay works) change attribute "Intercoin" = "Intercoin +1".

    The Intercoin must be a general attribute so you could access it all through out the game. Then make a rule on your unlockable actor to check if "Intercoin = 10" then you could change it graphics and do whatever you want.
  • ozboybrianozboybrian PRO Posts: 2,102
    No luck :/ Keeps doing it on one coin.. But this has helped me understand how Integers and Booleans work a lot more Thank you so much for that so it's not a complete loss.

    But I remain Puzzled.
  • AppsRacKAppsRacK Member Posts: 346
    Glad that i could help. Anyways you could use this technique to check why it keeps on unlocking at 1 coin.

  • ozboybrianozboybrian PRO Posts: 2,102
    You're well on your way to be a Sous Chef mate, that's one of my Dreams at the moment : )
  • AppsRacKAppsRacK Member Posts: 346
    Not really my intention its just that im bored at the office right now and im using a window base comp. If im using a mac right now your probably wont see any single post from me today. :)
  • ozboybrianozboybrian PRO Posts: 2,102
    hahaha nice.
    The debug thing didnt work, im gonna watch it in high res now to make sure I haven't done it wrong.

    So basically I follow the debug and in the insert text i display text for my coininterger?
Sign In or Register to comment.