I have created a game with an SKSpriteNode that is a black image and when the user touches the screen I would like for the SKSpriteNode to change to white.
I have tried to use this:
sprite.color = .whiteColor()
sprite.colorBlendFactor = 1
And it does nothing. I have also tried something like:
let colorize = SKAction.colorizeWithColor(.whiteColor(), colorBlendFactor: 1, duration: 5)
sprite.runAction(colorize)
But this just makes the sprite fade to white and then back to black.
How do I make my black sprite image turn white and stay white when the user touches the screen?