A bug? Or am I just stupid? Perhaps...
Posted: Sat Dec 22, 2007 7:10 pm
There are four dots. After the sequence is done playing, the user is supposed to click the dots in the same sequence/order that the dots appeared in. I am trying to write a global function that updates the progress text number everytime a dot is clicked on. If I update the text number in the local funtion, it updates just fine. If I then create a global function that contains the same line of code, the textNumber is no longer updated.
In the attached example you can click on the green, red, and yellow dots and see that the progress.textNumber is updated on the screen. When you click on the blue dot you can see that when the global function: check() is called, which contains the same progress.textNumber++ line as the local function, the progress.textNumber is not updated on the screen. Why is it that when progress.textNumber is updated locally by the actor, it updates on the screen, but when progress.textNumber is updated by a global function, the screen is no longer updated?
Very Respectfully,
MrScience101
In the attached example you can click on the green, red, and yellow dots and see that the progress.textNumber is updated on the screen. When you click on the blue dot you can see that when the global function: check() is called, which contains the same progress.textNumber++ line as the local function, the progress.textNumber is not updated on the screen. Why is it that when progress.textNumber is updated locally by the actor, it updates on the screen, but when progress.textNumber is updated by a global function, the screen is no longer updated?
Very Respectfully,
MrScience101