Any way to load locally stored files at runtime?

Get help using Construct 2

Post » Sun Feb 17, 2013 10:38 pm

Is there any way to load files (images, sound effects, music) from a local HDD at runtime? I know a file menu will require some more work and possibly a plugin, but right now I would be more than happy to load files through a bunch of textboxes.

I've already tried "load image from URL" (Load Image from textbox.text) but that doesn't really seem to work.

Ideally, I would want to load all files through my own little editor and save them in a way that makes it easy to be loaded by an adventure interpreter I'm also working on (also developed in Construct2).
B
6
S
2
Posts: 206
Reputation: 1,685

Post » Mon Feb 18, 2013 1:54 am

Bump.

Directing "Load image from file " to "file:///C:/imagename.png"

yields no result.

Is this because of the AJAX limitations?
B
6
S
2
Posts: 206
Reputation: 1,685

Post » Mon Feb 18, 2013 9:34 pm

Yes, you can't just load any file from someone else computer ;)
I don't think there's any other way than a manual import
You could make it more user-friendly with this kind of thing though
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Mon Feb 18, 2013 10:08 pm

I'm unable to download the CAPX for now. But if I understand this correctly, this plugin would allow me to drop graphics directly into the browser window/node webkit application.

If this is the case, it would be a more than welcome addition to my Adventure Engine project.

I want the editor suite of GOAE (short for Grand Old Adventure Engine -- the original engine was done in the wanning days of MS-DOS. Unfortunately, I seem to have lost the source code. Which is a real shame, considering the tricks I had to pull off to get transparency working back then.) to be as discernible as possible.
B
6
S
2
Posts: 206
Reputation: 1,685

Post » Tue Feb 19, 2013 2:29 am

Alright.
Tried it and it works splendidly.

Thanks for telling me about this, unarguably great, plugin.
B
6
S
2
Posts: 206
Reputation: 1,685


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests