The SKAction
colorizeWithColor:
does as per the docs only work with SKSpriteNode
, so what do we do with SKLabelNode
? SKLabelNode does have both color
and colorBlendFactor
properties that can be set statically. Is there some way to animate this with SKAction?
My current approach is to render a SKLabelNode to a texture using SKView's instance method textureFromNode, but just get nil texture out of that atm :-(
Update: What do you know. I think I found out the problem with the texture rendering. It's not possible to redner a texture in the init method of SKScene, because self.view is nil at that point. So I tried it in didMoveToView and voila, texture rendered. Thanks anyway :-)