Is there something going on in the background with my string in gdscript? It prints out just like you would expect a string to, apart from ignoring my escape characters.Ĭould it be something to do with the fact that it comes in as a JSON? As far as I'm aware, even if a string is chopped up and reassembled, it should still just behave like a string.?!Īnyway, I haven't included any code because I don't know what code you'd need to see. I don't have a computer science background (I've done some C up until pointers, at which point I decided to return later). If I feed some constant string with \n in the middle directly into the function which displays the dialog text, it adds a space so I'm not really sure what is going on here. I've tried using the format string function with 'some text here some more text', with the space referencing a string consisting of just \n. A single text entry in CastleDB doesn't support spaces, and '\n' within the string prints to '\n', not a space, in the dialog box. I've hit a stumbling block with escape characters.
0 Comments
Leave a Reply. |