How do I auto-fit text, auto-change font size

Get help using Construct 2

Post » Sat Oct 24, 2015 9:54 pm

Is there any way to adjust a text in a specifit area? Changing the font size.
Any object, behavior, code, ... ?

Image

I'm trying something like this, but I must put this "wait 0.1" to get the ".TextWidth" and every time the text change, user can see a flash in screen.
Image

Thank you
B
10
S
5
G
1
Posts: 26
Reputation: 1,452

Post » Tue Oct 27, 2015 5:38 pm

I haven't been able to get rid of the flash when using exactly what you are using above. I eventually just designed around it and delayed the text opacity to 100 until the box was re-sized, but I wasn't using 100% dynamic text, simply dynamic loading.

You could try fading the text out/in for at least a smoother transition.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, Huemerson, jorgmaquoi and 6 guests