• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

 String literals [ISSUE]

xDGameStudios

GameMaker Staff
GameMaker Dev.
This should output the same but it doesn't!
Code:
show_debug_message("Hi everyone\nHow are you");

show_debug_message(@'
Hi everyone!
How are you?
');

First one outputs correctly:
Code:
Hi everyone!
How are you?

Second one doesn't output correctly:
Code:
Hi everyone!

How are you?
It adds one extra new line break, for each line break! Is it normal?! :/
 

rwkay

GameMaker Staff
GameMaker Dev.
Are those extra lines just getting added in the IDE Output Form????

I suspect it is not handling the CRLF that the editor will add in properly.... please file a bug...

Russell
 

xDGameStudios

GameMaker Staff
GameMaker Dev.
Are those extra lines just getting added in the IDE Output Form????

I suspect it is not handling the CRLF that the editor will add in properly.... please file a bug...

Russell
Yes just in the IDE Output Form

if I draw to the screen is okay! :)
 
Top