Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 1 of 2 |
|
|||||
|
Im making a sort of message console. I have a 2D overlay with some text. I have the multi-line option enabled. I'm trying to edit this text using JS and tried to make a line break with the "/n" special character and was shocked that this did not work. Can this be added to Coppercube? |
||||
|
Perfect timing to return a favor for your dynamic-variable solution :) I also tried this and failed but the + "\r\n" + worked fine :) //////Edit ...sorry, it works only when saving to txt/ini :( var text1 = 'First line';This will save a txt file with multi-lines but it's not working for 2D Overlay. //////Edit Edit It does work :) I just forgot to choose Multiline in Alignment of 2D Overlay :) |
||||
|
You are right '\r\n' works great thank you! |
||||
|
wrote: You are right '\r\n' works great thank you! Note that this wont work in the debug console. But, I am confused because /n has worked for me in Strings. Must be something with how Coppercube saves text files. |
||||
|
Also, it's not working well on android either. Sometimes works, sometimes no text is displayed. |
||||
|
It wont work on android because android is a Linux based system... Those commands only work on windows based systems |
||||
|
hihisisy is a Spam Bot ^ |
||||
|
It's not working on Android |
||||
|
Wait...there is no universal newline ? In ActionScript, it's "Hello" + newline + "World", works across ALL platforms. |
[ 1 2 ] Page 1 of 2 |
|