Jump to content

Add text to scaled sprite


masterop
 Share

Recommended Posts

Hello, i'm trying to add a text child to a sprite

s = this.game.add.sprite(0,0,'bet');s.scale.setTo(0.5, 0.5);t = this.game.add.text(0,0,'100$');s.addChild(t);

The problem is the also get scaled with the sprite. is there any way to scale only  the sprite ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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