Question

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?

Était-ce utile?

La solution

Simple:

sprite.color = ccWhite;

Autres conseils

Have you tried?

CCTintTo *tint = [CCTintTo actionWithDuration:0 red:255 green:255 blue:255];
[self runAction:tint];
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top