Jump to content

How to move a text object in phaser ?


sauravtom
 Share

Recommended Posts

I want to move a text object ,

this.option1 = game.add.group();this.option1 = this.game.add.text(width-200, 20, "Option 1", { font: "30px Arial", fill: "#ffffff" });this.option1.velocity.x = -200;

But it throws a TypeError saying

 

Uncaught TypeError: Cannot set property 'x' of undefined

Link to comment
Share on other sites

  • 1 year later...
 Share

  • Recently Browsing   0 members

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