Jump to content

Setting the position of a Graphics object [1.0.7]


Recommended Posts

Hi there, I'm in the process of converting my game from using 1.0.6 to 1.0.7. The following code used to work in .6 but I see that in .7, Graphics no longer has a

Phaser.Sprite.call(this, game, x, y); 

in its constructor and I cannot set the x and y variables directly.

this.ship = new Phaser.Graphics(this.game, 0, 0);this.ship.x = -100;this.ship.y = this.game.height + 100; 

Is there a way to do this?


Link to comment
Share on other sites


  • Recently Browsing   0 members

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