GameSalad

Howdy, Stranger!

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

Formula for this sequence of numbers

3absh3absh Posts: 538Member, PRO

75, 175, 300, 425, 575

basically

75+ 100, 125, 150, 175 and so on

how can i write this in a formula?

Comments

  • 3absh3absh Posts: 538Member, PRO

    using "n" as a variable that increases every level up

  • 3absh3absh Posts: 538Member, PRO

    My failed attempt

  • tatiangtatiang Posts: 11,815Member, Sous Chef, PRO, Senior Sous-Chef
    edited May 8

    If you think of that list of numbers as multiples of 25, it can also be written as:

    3 * 25, 4 * 25, 5 * 25, 6 * 25, 7 * 25, etc.

    And each level corresponds to a multiple two greater than the level (e.g. Level 1 = 3 * 25, Level 2 = 4 * 25, etc.).

    So this should work:

    Change attribute game.score to game.score+(game.gameLVL+2) * 25

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

Sign In or Register to comment.