Hsaka Posted October 12, 2013 Share Posted October 12, 2013 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 aPhaser.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 More sharing options...
Hsaka Posted October 12, 2013 Author Share Posted October 12, 2013 Ended up putting back the Phase.Sprite.call in the Graphics constructor on my local phaser.js build. Hope that doesn't mess up anything Link to comment Share on other sites More sharing options...
STuFF Posted October 13, 2013 Share Posted October 13, 2013 I did something like mygraphic.position.x = newPosition, but I don't think it's a future proof way of doing that... Link to comment Share on other sites More sharing options...
Recommended Posts