-
Issue with points
I have a function that when a timer hits 10 sec to add 10,000 points to score, but when I play the movie keeps adding points over and over again. How can I stop this? :confused:
Thanks in Advance
Here is the code:
PHP Code:
onClipEvent (enterFrame) {
if(_root.count_down==1001) {
_root.count_down--;
_root.score += 10000;
}
}
-
this will happen because when count_down hits 1001
you subtract one from it then add 10000 to the score.
if count_down is being incremented somewhere else (which it must be). then it will keep getting to 1001 and adding 10000 to the score.
why do you subtract one from count_down?