GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Coin System

Hi Everyone,
I have a coin system set up to every time a coin is collected game.score goes to game.score+1, but what I want is for these coins collected to be put into an overall "wallet" or "money" system that can buy things in the store I've set up, right now they just add to the high score but I want them to be able to buy things.

Answers

  • SocksSocks London, UK.Posts: 12,822Member

    Just use the high score to buy things, it's all just numbers.

  • tatiangtatiang Posts: 11,696Member, Sous Chef, PRO, Senior Sous-Chef

    I'm guessing that you have other things that add to the score besides the coins. If so, make a separate attribute called game.coins and only add the coins to that attribute. Then add the other scores to game.score so that you keep them separate.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Posts: 11,696Member, Sous Chef, PRO, Senior Sous-Chef

    If you decide to reject an answer, it helps us to know why. Can you explain a bit more about what you're trying to do or -- for example -- why my suggestion didn't answer your question?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Posts: 12,822Member

    @tatiang said:
    If you decide to reject an answer, it helps us to know why.

    Agreed, it helps people offer alternative solutions to know why answer A or B didn't work out.

  • ashtmjashtmj Posts: 405Member, PRO
Sign In or Register to comment.