Hi,
Is there a way I can use imported files? I'm trying to import a .xml or a .json directly to Construct 2 by clicking the files folder and importing it, but what would be the path to use it? Is this even possible?
Thanks.
Using project files in Construct 2
You can AJAX request the files. They are in the same directory as index.html, so you can access them by their name alone (e.g. "file.xml").
oooohhhh, just commenting. That will help me work on my metroidvania rpg like game in 6 or so months when I get started :D I was wondering how I was going to handle conversation scripts. This is good :)
Develop games in your browser. Powerful, performant & highly capable.
Thanks!
scirra.com/tutorials/328/using-project-files-in-construct-2 You can AJAX request the files. They are in the same directory as index.html, so you can access them by their name alone (e.g. "file.xml").
scirra.com/tutorials/328/using-project-files-in-construct-2
I can't request the files form URL (e.g. "http://127.0.0.1/image/p001.jpg")