Upgrade System

AcceleratedGamesAcceleratedGames Member Posts: 201
edited January 2012 in Working with GS (Mac)
I am making a game that could use an upgrade system that uses “coins” to buy the upgrades. I have tried many different kinds of systems and either the coin count doesn’t save or it doesn’t add correctly. Can anybody help?

Comments

  • POMPOM Member Posts: 2,599
    edited January 2012
    Im planing on making a template (FREE) once the next update will come and bring tables (arrays) , cause creating an in-game market with tables will be much easier and code friendly , so be sure to check it out once it will be released .

    Now for your problem , sound like something is wrong with your code cause adding and reducing "coins" from an integer should be fairly easy ,
    change attribute game.coins TO game.coins+10
    change attribute game.coins TO game.coins-10
    etc
    be more specific , what is the issue ?

    Roy.
  • AcceleratedGamesAcceleratedGames Member Posts: 201
    edited January 2012
    Thanks!

    The issue was I was trying to use the score as the currency and since every time the scene starts over, the score would go back to 0 along with the amount of coins I had. When I tried to make it add to the previous score, it would either change the amount of coins to 0 or make it a number a lot larger than what it should have been.

    I think I'm going to stick with collectable coins instead of using the score.
Sign In or Register to comment.