zoeybird Posted December 31, 2015 Share Posted December 31, 2015 Hey,I currently develop a simple game with Phaser and Javascript for a student project . I have added a "start screen" and now an error message "TypeError: an is undefined" pops up by calling the first state . It's located in the file "phaser. min. js". I already have tried to exchange this by another "phaser. min. js" file, but it still gets the mistake. Does somebody know advice? The attached file contains the js code of the first state.state1.txt Link to comment Share on other sites More sharing options...
lewster32 Posted January 1, 2016 Share Posted January 1, 2016 You'll need to trace the error up through the layers to your code to find out where it's happening. It sounds like a function is missing a required argument - you should replace phaser.min.js with phaser.js (unminified code allows for much easier debugging and should always be used during development) and the error will make more sense. Link to comment Share on other sites More sharing options...
Recommended Posts