Sign in to follow this  

Scale Text?

Recommended Posts

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?

Share this post

Link to post
Share on other sites

You can scale Text object just like any other Container.

var text = new game.Text('Hello');

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


Share this post

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.