1

SKView has some SKSpriteNodes and a SKLabelNode. And SKLabelNode alway show some help info text. While SKSpriteNode object moves in SKView and sometimes it will hide the SKLabelNode. Is there any method to make the SKLabelNode always on the top layer of SKView.

The Answer is: set the Zposition of SKView.

andrewz
  • 4,729
  • 5
  • 49
  • 67
Qijin
  • 307
  • 2
  • 13
  • 5
    Simply give it a higher zPosition... – T. Benjamin Larsen Apr 18 '14 at 14:02
  • zPosition is set to 0 by default.The positive z axis is projected toward the viewer so that nodes with larger z values are closer to the viewer. Thanks! – Qijin Apr 19 '14 at 08:46
  • 1
    Careful: if you set the zPosition too high it will render behind the person looking at the screen and they won't see it… [\humor] – geowar May 30 '14 at 00:10

0 Answers0