toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
Feedback
›
Tech Support
Repeating score change attribute
Weswog
Member
Posts:
1,171
November 2009
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
Comments
butterbean
Member
Posts:
4,315
November 2009
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..."
Weswog
Member
Posts:
1,171
November 2009
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.
Corella
Member
Posts:
37
November 2009
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.
Weswog
Member
Posts:
1,171
November 2009
Thank you that worked:)
Cheers, Weswog
Sign In
or
Register
to comment.
Comments
Create attribute game.score to keep track of score
When game.score = 6,000
Change attribute: "insert what attribute you want to change..."
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.
Cheers, Weswog