How do I stop text overflow?

Get help using Construct 2

Post » Wed Jun 29, 2016 3:27 pm

In my game, I have 2 text boxes. If I over fill them both, one of them just stops displaying characters, while the other continues to display characters outside of the provided space.

Is there a specific reason why this happens? Is there a way I can set it to NOT overflow, and stop displaying the characters that spill over?

Thanks in advance.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
82
S
14
G
7
Posts: 975
Reputation: 11,037

Post » Wed Jun 29, 2016 4:38 pm

@AnD4D
text boxes do not dynamically grow, so you must have made one of the boxes bigger than you want. You can change the Wrapping in the properties from Word to Character. If it is set to Word and your text has no spaces, then it will display nothing if the text doesn't fit.

You could also truncate the text, or edit it in some other way when you insert it into the text box...
without seeing more about what is happening, it is hard to say...
B
98
S
35
G
20
Posts: 438
Reputation: 17,875

Post » Wed Jun 29, 2016 11:30 pm

AllanR wrote:@AnD4D
text boxes do not dynamically grow, so you must have made one of the boxes bigger than you want. You can change the Wrapping in the properties from Word to Character. If it is set to Word and your text has no spaces, then it will display nothing if the text doesn't fit.

You could also truncate the text, or edit it in some other way when you insert it into the text box...
without seeing more about what is happening, it is hard to say...


That's what I thought, but my game is begging to differ. When I set the sprite text box to a fixed width, then repeatedly add text, the text doesn't stop appearing, but will flow over and spill into the surrounding areas to the right. That's if I don't use any spaces. If I use a space, it'll appear correctly.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
82
S
14
G
7
Posts: 975
Reputation: 11,037


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests