Ninjadoodle Posted July 10, 2018 Share Posted July 10, 2018 Hi @enpu I've been going through the docs and I know that you can 'tween' the scale of text. I can't seem to find however how to set the scale of text when setting it up. The only property I can see is maxWidth. Is there a way to do this? Quote Link to comment Share on other sites More sharing options...
enpu Posted July 10, 2018 Share Posted July 10, 2018 You can scale Text object just like any other Container. var text = new game.Text('Hello'); text.scale.set(2); Is that what you were looking for? You can also set properties as parameter: var text = new game.Text('Hello', { scale: { x: 2, y: 2 }, alpha: 0.5 }); Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 10, 2018 Author Share Posted July 10, 2018 Hi @enpu I could have sworn I did just that, but it wouldn’t work. Just tried again, and it works perfectly. i must have mistyped some part of it Thanks heaps!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.