javi.hernandez-374501 Posted December 4, 2016 Share Posted December 4, 2016 Hello, I am new to Phaser and I am trying to get a player extends from a sprite and display it in the screen but I am not being able and I don't know why. If anyone could help me It would be appreciated. Thank you. this is my code play.js player.js game.js Link to comment Share on other sites More sharing options...
javi.hernandez-374501 Posted December 4, 2016 Author Share Posted December 4, 2016 I only needed to add game.add.existing(this.player); as it is explained in http://examples.phaser.io/_site/view_full.html?d=sprites&f=extending+sprite+demo+1.js&t=extending sprite demo 1 Link to comment Share on other sites More sharing options...
stupot Posted December 8, 2016 Share Posted December 8, 2016 Javi, try and create a JSFiddle or equivalent, you'll get a much better response if you make it easy to demonstrate, ie 1 click to a running example Link to comment Share on other sites More sharing options...
Recommended Posts