display scrollable text in a Spritekit Scene (Swift) -


what best way display block of scrollable text in spritekit game? within scene. write own algorithm using sklabels seems there should better way.

there no component in spritekit out of box, it's quite simple simulate scrolling text handling touches.

you have handle limit , paging if want have bouncing, acceleration , others, there plenty of examples around here start from. keep in mind sklabelnode doesn't support multiline out of box, have create own multiline label (basically 1 label per line).

if text want render long may struggle create , not smooth, work fine.

the other option use uikit makes simple create using uiscrollview , uitextview , present on top of skview contains scene. doesn't work if need within scene works wonders if want display big chunks of texts instructions or legal texts.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -