How do I scale text like css

0 favourites
  • 6 posts
From the Asset Store
OpenAI TTS
$10 USD
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • Hello,

    I was working on a projet with an idea of animation in mind which is just to scale up the score text of my game each time its updating.

    But I'm very worried to not find any solution for just scaling a bit the text (like in CSS with transform : scale).

    I've looked on the forum and didn't found any similar subject. I've tried to set Width & Height but it's changing the text area.

    Is there any solution ?

    Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Set Font size under appearance

  • Hi, thanks for the answer, however doing this each tick does just make my text disappear. I guess it doesn't support decimal numbers (tried with round, same result) or fast set. And I can't Get the font size, which is annoying, I need to put my value in the code like that. I also need to setup each tick to animate it.

    I've done more research and found that sprite font has a scale properties, but I'm not sure how it will behave.

  • there isnt really any need to scale the font every tick...thats 60 changes per second...no one can see that kind of changes..

    I suggest only changing it when you need to..not every tick

    also

    The thing is with Font size is that the border box of the text object determines whether the text appears at whatever size..do you understand ?

    so if your text object border size is too small when you enlarge the font it will not appear inside the box..

    you would need to scale the box size with the font size

    hope that clears things up

  • Well, I need to set it every tick for animate it.

    I noticed the border box thing with text size.

    Anyway, I found my way with the sprite font, it's working quite well.

    I just had to fix also the letter spacing each time I modify the scale because it's not linked or proportionnal (very annoying). Maybe I will retry with normal text.

    Thanks for the help !

  • maybe you can Display Score as Sprite...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)