javi.hernandez-374501 0 Posted December 4, 2016 Report 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 Quote Link to post Share on other sites
javi.hernandez-374501 0 Posted December 4, 2016 Author Report 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 Quote Link to post Share on other sites
stupot 46 Posted December 8, 2016 Report 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.