jungle_roger Posted October 6, 2013 Share Posted October 6, 2013 Hi, I'm, having an issue using '\n' to break lines of text.. it simply displays them..And using wordwrap just cuts off words in the middle. The issue is caused by formulating the string separately from when the text object is created or when set text is used.. This works :PIXI.Text("line one \n line two"....This doesn't :var textstring = "line one \n line two";PIXI.Text(textstring....Is there anyway around this?? Quote Link to comment Share on other sites More sharing options...
jungle_roger Posted October 7, 2013 Author Share Posted October 7, 2013 OK.. I worked it out myself.. using instead of\nseems to work, I guess its because its being pulled from an XML file the encoding is different. benny! and hubert 2 Quote Link to comment Share on other sites More sharing options...
benny! Posted October 7, 2013 Share Posted October 7, 2013 Thumb up. I am always happy to see if people are posting their solutions in cases like this. hubert 1 Quote Link to comment Share on other sites More sharing options...
Izaias Posted October 16, 2015 Share Posted October 16, 2015 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.