Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Is there a way to wrap text with printat?

    Beginners
    2
    3
    250
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • poof92
      poof92 last edited by

      I'm not too sure how to do this?

      1 Reply Last reply Reply Quote 0
      • mozipha
        mozipha last edited by

        You can add chr(10) (ASCII line feed character) to a string to manually add a line break. For example,

        printAt(0, 0, "Hello" + chr(10) + "world!")
        

        will display as

        Hello
        world!
        

        If you want to display text with an auto word wrap, drawTextEx() has a width parameter that will wrap the text when that width is exceeded.

        poof92 1 Reply Last reply Reply Quote 1
        • poof92
          poof92 @mozipha last edited by

          @mozipha oh I can't believe I didn't notice that thanks a bunch

          1 Reply Last reply Reply Quote 1
          • First post
            Last post