Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Message Help

I can't find answers to these so I'm hoping someone can help me out. I'm using Ucoder Message System.

How do I change the text limit?

How do I expand the width of the text in the message?
I'm using message window width 640, but the text only goes to about 400.
 

khmp

Sponsor

Whenever you create a message event with any message script or the default anyway you'll notice that even if you hold down a key the text will carry into a new line regardless of whether or not you pressed the return/enter key. The system is injecting a "\n" into the message. These are called new lines. Whenever the message script parses the text any newline increments y. And it isn't a simple fix to rip out newline automation. There are other things because of the system that must be taken into account.

That been said I think I have a *hack* fix but it will make it impossible to tell where the cut will happen. So it might occur in the middle of a word at the end of sentence etc.

Demo Is Here

I included a boolean into Game_System to ignore newline. Which will do just that. I wouldn't recommend doing it all the time. But only when you need to draw that amount of text.

So when you want to ignore new lines before the message of text use the Script... event command and use this line:
Code:
$game_system.ignore_newline = true
To re-enable new lines set it to false. It is not automatically turned off when a message is displayed so keep that in mind.

Good luck with it tchild! :thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top