masterop Posted September 2, 2015 Share Posted September 2, 2015 Hello, i'm trying to add a text child to a sprites = 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 More sharing options...
rich Posted September 2, 2015 Share Posted September 2, 2015 You need to scale the text to counter-act the scale applied to the sprite. So in the example above a scale of 2 should cancel out the 0.5 from the parent. Link to comment Share on other sites More sharing options...
Recommended Posts