swift - How to update SKLabelNode color after the node is initiated? -
swift - How to update SKLabelNode color after the node is initiated? -
i have sklabelnode in swift-code. need alter label's color during skaction. simply:
override func didmovetoview(view: skview) { ... var color = uicolor(red: cgfloat(1.0), green: cgfloat(0.0), blue: cgfloat(0.0), alpha: cgfloat(0.0)) mylabel.fontcolor = color ... }
doesn't work. still have somehow update node how? i'm noobie swift , sprite kit.
i had similar problem few weeks ago. seek changing color variable following:
var color = uicolor(red: 1.0 / 255, green: 0.0 / 255, blue: 0.0 / 255, alpha: 0.0)
swift colors sprite-kit sklabelnode
Comments
Post a Comment