Savo27

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. Savo27

    Problems with loading image

    I have found the problem. phaser.AUTO is not good now, you have to use phaser.CANVAS
  2. Savo27

    Problems with loading image

    Same error, I can't understand Thx mapa
  3. Savo27

    Problems with loading image

    none?
  4. Savo27

    Problems with loading image

    TY mapacarta for the reply I'm using xammp as a web server
  5. Savo27

    Problems with loading image

    Hello to everyone I'm new with phaser 3, i'm having a lot of problems with loading images So, my index.html is <html> <head> <script src="phaser.js" ></script> <script src="example.js" ></script> <script src="game.js" ></script> <script src="example2.js" ></script> <script src="example3.js" ></script> </head> <body></body> </html> example.js class example extends Phaser.Scene{ constructor() { super({Key:"example"}); } preload() { this.load.image('GFS','assets/GFS.jpg'); } create() { this.image = this.add.image(800,640,'GFS'); } } game.js var config = { type: Phaser.AUTO, width: 800, eight : 640, physics: { default: 'arcade', arcade : { gravity : {y:200} } }, scene : [ example ] }; var game = new Phaser.Game(config); The error on chrome's console is phaser.js:39287 Failed to load file:///C:/Users/extro/Google%20Drive/Project/HTML/Index/assets/GFS.jpg: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. I can't find an answer to that on google or something else, I'm using xampp server. I've also another problem to reach <script src="//cdn.jsdelivr.net/npm/phaser@3.11.0/dist/phaser.js"></script> with chrome is displayed well on the URL, but in a scritp it give back that error Failed to load resource: net::ERR_FILE_NOT_FOUND phaser.js:1 part1.html:18 Uncaught ReferenceError: Phaser is not defined at part1.html:18