Keep text From Going Off Screen

How do you keep the text confined to a certain space. Kind of like a display.newRect for display.newText so that way the text doesn’t run off the screen if it’s too long? [import]uid: 98804 topic_id: 20224 reply_id: 320224[/import]

There is indeed :slight_smile:

Try out display.newRetinaText, that has the option to set how wide and high it can go. For example…

display.newRetinaText( string, left, top, [width, height,] font, size )  
  
display.newRetinaText( "Hello", 0, 0, 280, 220, "Helvetica", 16 )  

Hope that helps.
EDIT: You can also try a text box, that allows you to use alot of text, and also have the area scrollable. Check out this link: https://developer.anscamobile.com/reference/index/nativenewtextbox [import]uid: 69826 topic_id: 20224 reply_id: 78974[/import]

Perfect! Thanks :slight_smile: [import]uid: 98804 topic_id: 20224 reply_id: 79001[/import]