0

How can i have text in a SKLabelNode stay on the screen. When i type more than a few words, it goes off the screen? How do you keep it inside the screens boundaries.

user3299383
  • 213
  • 5
  • 17
  • Possible duplicate of [Multi-line label in swift 2 sprite-kit?](https://stackoverflow.com/questions/35121482/multi-line-label-in-swift-2-sprite-kit) – Mike Keskinov Oct 03 '17 at 15:56

1 Answers1

1

SKLabelNode does not support multiple lines or text wrapping, hence any text is rendered on a single line which, if long enough will go off the screen.

Refer to the answers in the following questions:

\n not working in Sklabel SpriteKit

Insert line break using SKLabelNode in SpriteKit

Community
  • 1
  • 1
ZeMoon
  • 20,054
  • 5
  • 57
  • 98