Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

How to move a text object in phaser ?


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...

  • Recently Browsing   0 members

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