Jump to content

text on a sprite


dthrasher90
 Share

Recommended Posts

You can create a sprite and add the text-field as the child to sprite so that you manipulate a a single asset as @breed had mentioned.

var sprite = game.add.sprite(200, 200, 'mushroom');
var spriteTitle = game.add.text(0,0,'Title',{ font: "65px Arial", fill: "#ff0044", align: "center" });

sprite.addChild(sprite);

Link to comment
Share on other sites

  • 2 years later...
 Share

  • Recently Browsing   0 members

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