0
votes

Let's say i've applied the following tinting to my sprite:

CCTintTo *tint = [CCTintTo actionWithDuration:2 red:50 green:50 blue:50];
[self runAction:tint];

How do i tint it back? How to recover previous color and make the sprite look as it looked before?

2

2 Answers

3
votes

Simple:

sprite.color = ccWhite;
2
votes

Have you tried?

CCTintTo *tint = [CCTintTo actionWithDuration:0 red:255 green:255 blue:255];
[self runAction:tint];