I am using the following code
if (timeLeft>500) {
[timeCounter setColor:ccc3((500-timeLeft)/500*255, 255, 0)];
}
else
{
[timeCounter setColor:ccc3(255, (timeLeft)/500*255, 0)];
}
in which timeCounter is a timebar Sprite and timeLeft is a integer running down from 1000.
The aim is to get the color to change from green to yellow and then from yellow to red. That all works when I compile the game and run it on my phone but as I download the version available on the appstore the timebar changes from Cyan to White and then from yellow to red. Has anyone else encountered this problem and found a fix or maybe the bug is just appearing in my device. Could anyone please test the app and say what the time counter at the top is colored.
Link to the game HERE
Thanking in advance.
Kristo