Text going off screen

I know I am going to tun into this issue in the future so I would like to ask in advance

If I have a sprite write something down that was inputed by the user, and it was so long it goes off screen, what can I do about that?

It maybe Because You did not make the text go on the middle or the middle top.

that does not help the OP at all, they’re probably asking if they do something like word wrap, not just “move it to the start and hope it fits”.

There are several ways to write something on the stage and wrap it.

  1. The easiest ist to let the Stage write it (yes, the Stage can “write”). This automatically wraps the lines nicely, but always starts in the upper left corner.

  2. The second-easiest way is to import the blocks of the “Writing and Formatting” library. There is a block in there that lets you specify the width of the text, where you want to wrap it.

  3. You can also write your own line-wrapping command block! That’s actually a fun project…

Does this help?

Yes this helps a lot! I did NOT think the stage could write!

Also, making a custom line wrapping block sounds fun! But I have no clue how I would even go about that.

Edit: Is it possible to change where the stage starts writing?

There’s not, so you’d have to use the writing and formatting library. To get the wrap size, you can just find the distance to the right edge of the stage.