I am trying to make life indicators instead of lives label in Zombie Conga…but it is scrolling away along with background… Please help. When I try to make it as a child to cameraNode, It doesn’t appear on screen… My code is listed as below:
let lifeIndicator1 = SKSpriteNode(imageNamed: “Zombie3”)
lifeIndicator1.size = CGSize(width: frame.size.width / 12, height: frame.size.width / 12)
lifeIndicator1.position = CGPoint(x: frame.size.width / 2, y: frame.size.height / 1.2)
lifeIndicator1.zPosition = 150
when I do addChild(lifeIndicator1) it is visible on screen but scrolls off the screen when background scrolls.
When I do cameraNode.addChild(lifeIndicator1) it isn’t visible.