A potato Posted March 16, 2020 Share Posted March 16, 2020 Hi! I'm having a problem with the phaser 2 online editor. I'm trying to create some text on multiple lines so I tried using \n or \r and while the do work initially, if I reload the page it splits the code itself. So initially my code is Quote game.add.text(157, 140, 'This is you,\nyou can move around\nin 8 directions\nwith the arrow keys.' , {font: "18px Arial", fill: '#FFFFFF'}); But when I reload the page it becomes Quote game.add.text(157, 140, 'This is you, you can move around in 8 directions with the arrow keys.' , {font: "18px Arial", fill: '#FFFFFF'}); Does anyone have a solution? Link to comment Share on other sites More sharing options...
Alexalten Posted March 19, 2020 Share Posted March 19, 2020 Hi, try with a bouble back slash, as escape character. Bye Link to comment Share on other sites More sharing options...
A potato Posted March 19, 2020 Author Share Posted March 19, 2020 I tried it but it only adds a backslash in the middle of the text Link to comment Share on other sites More sharing options...
Recommended Posts