Cocos2d ccTintTo, implementing an endless changing color label?

If you want the tint color to be random for each time, then you cannot use CCTintTo directly inside CCRepeatForever . You need to re-randomize the RGB values for each CCTintTo action. Thus you need to embed the randomization process inside the action by using block.

Here is how.

You should look at CCRepeatForever action. As the name implies, it will repeat the action it points to forever. So you should remove your update method where you are changing the colors, and return to the CCSequence code that you had, and embed that in a CCRepeatForever action.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions