I created SKSpriteNode like this:
_easyImage = [[SKSpriteNode alloc]initWithImageNamed:@"smiley.png"];
_easyImage.position = CGPointMake(-20,screenHeight / 2);
_easyImage.name = easyBtnName;
_easyImage.physicsBody.affectedByGravity = NO;
_easyImage.zPosition = 10;
[self addChild:_easyImage];
I am trying to colorize the image after clicking in the method that I started using. I have a reference to the SKSpriteNode property, so when I see that it clicked, I execute this code
SKAction *pulseRed = [self colorizeChoosenSpriteNodeWithColor:[SKColor redColor]];
[_easyImage runAction: pulseRed];
What is the link to this method
-(SKAction*)colorizeChoosenSpriteNodeWithColor:(SKColor*)color
{
SKAction *changeColorAction = [SKAction colorizeWithColor:color colorBlendFactor:1.0 duration:0.3];
SKAction *waitAction = [SKAction waitForDuration:0.2];
SKAction *selectAction = [SKAction sequence:@[changeColorAction, waitAction]];
return selectAction;
}
However, the color of my image never changes. I can completely change the texture of the image, but I cannot just change the coloring.
EDIT: I removed the code distracting from the problem. I debugged the code and it definitely works correctly, but I am not getting the expected result.
Update: A color appears under my image that I discovered.

, . , . spriteNode?