How do I make text object expand to fit contents?

Get help using Construct 2

Post » Wed Dec 31, 2014 2:44 am

I want to continuously append new text to a text object. Does anyone know how I can resize the text object automatically as the new text is added?
B
5
Posts: 10
Reputation: 245

Post » Wed Dec 31, 2014 3:21 am

Not automatically no, but Text and SpriteFont object have a TextHeight and TextWidth property that you could use to resize the text object .
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Wed Dec 31, 2014 6:26 am

Perfect! That did the trick. Thanks!
B
5
Posts: 10
Reputation: 245


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests