Howdy, Stranger!

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

Repeating score change attribute

WeswogWeswog Posts: 1,171Member
edited November -1 in Tech Support
How do I make it so that every 6000 points or so it will change an attribute?

Cheers, Weswog


  • butterbeanbutterbean Posts: 4,315Member, PRO
    Can you do this?

    Create attribute game.score to keep track of score

    When game.score = 6,000

    Change attribute: "insert what attribute you want to change..."
  • WeswogWeswog Posts: 1,171Member
    What I want it to do is every 6,000 points so you don't have to do game.score=6,000 do something when it = 12,000 do something and so on. So I want to shorten it by every 6,000 points do one thing.
  • CorellaCorella Posts: 37Member
    One way would be to have a separate attribute which is at 6000, so when

    game.points = game.trigger (for example)
    "do something" and change attribute game.trigger to game.trigger +6000

    so that the next time,

    game.score = game.trigger

    it will do something again. If that made sense.
  • WeswogWeswog Posts: 1,171Member
    Thank you that worked:)

    Cheers, Weswog
This discussion has been closed.