Increased Prices?

SikkJewFroSikkJewFro Member Posts: 75
edited June 2014 in Tech Support

So I have an upgrade in my new game right?
And it's set up to..
Check if the player has morethan or equal to "10" points.
If so, it deducts the points from the players points and makes it so that every time the player taps the screen,
he gets a bonus 1 point. So, How can I increase the prices on the same item?
By using multiplication? I can't obviously input 200 different prices for a single item, so is there a way I can make it
increase please help! Thanks in advanced!

Comments

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

    Can you give an example of various prices for an item?

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

  • StormyStudioStormyStudio United KingdomMember Posts: 3,989

    Bit confused by the question... and you may be after something more complicated but I think you might just want to do the following simple addition to a game attribute:

    Have a game attribute that is your points value, lets call it game.points
    then a game attribute which is your bonus lets call it, something exciting... game.bonus :-)

    Then in your rules, when the upgrade is activated.

    Every time the screen is pressed.
    Change attribute:
    (current points) to (current points + bonus)

    That way it will keep adding the bonus value to the points each time...

  • SikkJewFroSikkJewFro Member Posts: 75

    Nevermind Guys, Just had to basically create an integer named "ItemPrice" and set it up so that each time it's baught it uses the formula

    ItemPrice*1.15^M (M=Number of items)
    But yes, got it working. ^-^

Sign In or Register to comment.