1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Feedback String literals [ISSUE]

Discussion in 'GameMaker Studio 2 Community Tech Support' started by xDGameStudios, Feb 21, 2017.

  1. xDGameStudios

    xDGameStudios Member

    Joined:
    Sep 15, 2016
    Posts:
    588
    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?! :/
     
  2. rwkay

    rwkay YoYo Games Staff YYG Staff

    Joined:
    Apr 12, 2016
    Posts:
    1,049
    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 likes this.
  3. xDGameStudios

    xDGameStudios Member

    Joined:
    Sep 15, 2016
    Posts:
    588
    Yes just in the IDE Output Form

    if I draw to the screen is okay! :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice