Jump to content

Phaser defaults to v1.1.3


brentstrandy
 Share

Recommended Posts

I've downloaded the Phaser min.js file from here (http://phaser.io/download/stable)

Whenever I run my code and look at the console (both on Chrome and Firefox) it shows Phaser v1.1.3

Screen Shot 2016-05-02 at 10.58.12 PM.png

Also I get the error: "Uncaught TypeError: this.load.SetPreloadSprite is not a function". I assume for some reason Phaser reverts to an old version that doesn't implement SetPreloadSprite, but my Phaser.min.js file shows v.2.4.7

Any help would be appreciated!

- Brent

Link to comment
Share on other sites

I just went to that page, downloaded both min.js and the js files from the big buttons at the top of the page, and it was definitely Phaser 2.4.7. The errors you're getting are because of the version of course, but I'd start with checking the obvious - like is it really the files downloaded from the site that your code is picking up? And not another version from somewhere else. Perhaps an old template, or example, or tutorial?

Link to comment
Share on other sites

I honestly only have one phaser.min.js file on my entire machine (I just searched). Would it be weird if I told you:

When turning on my Apache Server (MAMP) and I access the html file via localhost I see v1.1.3

When turning off my Apache Server and open the index.html file directly I see v2.4.7

Link to comment
Share on other sites

Try this: Open Chrome Dev Tools, open the Network tab, open the page that gives you 1.1.3. Find the phaser.min.js in the network tab. Hover over it. What does the URL say? because that's  your culprit (that or some insanely aggressive browser caching, but having Dev Tools open will nullify that)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...