Jump to content

A way to tween font size?


kavun
 Share

Recommended Posts

Text objects are essentially Sprites, so you can scale them as you'd scale a Sprite.

 

I've tested tweening the text size directly under 1.2 and while it works it's pretty clunky as it has to keep re-creating a new canvas each time, so I'd definitely not recommend it.

Link to comment
Share on other sites

  • 2 years later...

I was just looking to do the same myself - text with scale tween. So thanks for the thread ;)

I'm using the update loop to change the font size - would you consider it as a good solution?

rich, do all tweens re-create a new canvas each time? Are tweens considered as an "expensive" operation on the browser?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...