How do I scale text in buttons

Get help using Construct 2

Post » Sun Sep 06, 2015 11:18 am

Hello,
All my game scale correctly when I change the "Fullscreen in browser" method...
Except for the button texts (even with "Auto font-size"):

Scale off: Good
Image

Letter box integer scale: Bad
Image

But if I specify a font-size in CSS then:

Letter box integer scale: Good
Image

Scale off: Bad
Image

How can I dynamically re-size the font depending on the resolution?
Thanks for your time,
B
3
Posts: 4
Reputation: 183

Post » Mon Sep 07, 2015 4:13 pm

You can use actual Sprite objects for buttons, they are easier to work with visually.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Thu Sep 10, 2015 5:13 pm

thank you, it seems easier indeed :)
B
3
Posts: 4
Reputation: 183

Post » Fri Sep 11, 2015 11:02 pm

Yea, I've only ever used a real button object like twice so far. And never for any production code yet.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests