davy421 Posted February 27, 2016 Share Posted February 27, 2016 Hello, I'm not 100% sure if it's Phasers problem, but what happens that me ant two more people use WAMP to run Phaser games on localhost. In a few places in code we specify the path to some sprite files, for example "../assets/image.png" and it works perfectly for me and the other guy, but it doesn't for one of us because Phaser can't find these images. In order to go around this, he had to drop all the images into the main "www" folder where the index.html are and it suddenly starts working for him. Any ideas what could be causing this? He also only sometimes get Phaser errors like these. And I also want to add that we all have the same exact project on our computers but for some reason, there's this strange bug for one of us. Link to comment Share on other sites More sharing options...
rich Posted February 28, 2016 Share Posted February 28, 2016 This is nothing to do with Phaser and everything to do with the difference between relative and absolute paths, and filesystem traversal. This guide should help, especially the 'Relative Directory Traversal' part: http://www.dirigodev.com/blog/seo-web-best-practices/relative-vs-absolute-urls-seo/ Link to comment Share on other sites More sharing options...
Recommended Posts