How do I load a local file as sprite image?

Get help using Construct 2

Post » Fri Apr 04, 2014 3:22 pm

Hi! First I tried node-webkit but I switched to the AJAX object because the final app/game runs in a browser not in an .exe file.
I tried several kinds of paths for local files and searched the forums but it does not seem to work with a local path. Is there a way to convert a local file to a data uri to use it for "Load image from URL" for a sprite object somehow?

Short description of the project so far:
On startup a list of files is loaded (since list files from node-webkit does not work I added a .txt file like this: file1.jpg|file2.jpg|file3.jpg to use the tokenat expression with the ajax data). Then a For loop is used to create new sprites for each found file and then the sprite image should be loaded from the harddrive.

If this is not possible with local files, does it work if I install a local Apache webserver (like XAMPP) and then use the local url?
Bl4ckSh33p-Soft - Custom Software and Indie Games
Posts: 762
Reputation: 9,615

Return to How do I....?

Who is online

Users browsing this forum: Sproadic and 6 guests