Linzeestomp Posted May 29, 2018 Share Posted May 29, 2018 Hi all! Does anyone know where I might look to find some tutorials regarding best practices (basic phaser 3 game code/file structures) and perhaps some resources on STATES? If I could get some resources for using states in Phaser 3 I would really appreciate it! I keep running into an issue with "game.state.add" being undefined? Basically, if someone could point me to some very basic JS related Phaser 3 tutorials (video or article is fine) I would greatly appreciate it! P.S. A little background on me: Several years of experience using PHP/MySQL, released several text based RPG's, designed an open source CMS and assisted a startup for a little while. I have very little experience/knowledge with Javascript/ECMAScript Link to comment Share on other sites More sharing options...
samme Posted May 29, 2018 Share Posted May 29, 2018 game.state.add is Phaser 2 only. Make sure you're using only Phaser 3 references. Start with https://phaser.io/tutorials/making-your-first-phaser-3-game. Link to comment Share on other sites More sharing options...
Linzeestomp Posted May 30, 2018 Author Share Posted May 30, 2018 THANK YOU! I was trying to figure out why I kept getting that error! It looks like I need to use "this.scene.add"? Link to comment Share on other sites More sharing options...
Derail Posted May 30, 2018 Share Posted May 30, 2018 For me the scene examples were the most helpful to get a feel for it: http://labs.phaser.io/index.html?dir=scenes Link to comment Share on other sites More sharing options...
Recommended Posts