Project Files and subfolder

Get help using Construct 2

Post » Tue May 26, 2015 12:39 am

Hi there.
I am using .json files uploaded to the Files section of my project to populate a tilemap.

I am using the AJAX Get URL action as I want to be able to manipulate the filename.

This all works fine if the .json files are in the top level of the folder, but when I try to organise them into subfolders, and reference them with "subfolder/file.json" for example, it doesnt work.

Is this expected behavior?

Many thanks.
B
6
Posts: 23
Reputation: 421

Post » Tue May 26, 2015 4:03 pm

The exported project has a 'flat' directory structure. Basically folders you create in the editor are just an aesthetic. So if you've placed a file in subfolder/file.json, you'll be able to request it with /file.json. It's frustrating, not a wanted feature.
B
10
S
2
G
1
Posts: 202
Reputation: 1,545

Post » Tue May 26, 2015 7:02 pm

Wow - I would have never figured this out.

Thanks so much.

I only want the folders for organisation in the project, so this is great news.

;)
B
6
Posts: 23
Reputation: 421


Return to How do I....?

Who is online

Users browsing this forum: alextro, tarek2, wenwen11212016, Yahoo [Bot] and 7 guests