Problem Description
This might be a bit difficult to explain, because it makes little sense. But it appears that when you use NWjs to open an image and load it into a sprite using "load image from url", but at the same time copy the file to a new destination and tell it to use that one instead. And then load a new image it still uses the old image despite it doesn't exist anymore. Guess it might read it from memory maybe?
Attach a Capx
https://dl.dropboxusercontent.com/u/109921357/Load%20image%20from%20file%20bug.capx
Description of Capx
Allows you to select a jpg file and load it into a sprite. At the same time copying the file to "C:\Test.jpg" Right clicking the image will load the image from C:\Test.jpg.
Steps to Reproduce Bug
Will explain it with screenshots, otherwise it hard to explain and probably makes little sense I think.
The code of the whole program. The global variable was an attempt to see if it was possible to only load an image into a single sprite. Which seems to not work.
Double clicking one of sprites will open the NWjs dialog and I selected a image which is pure red.
The image is now copied to C:\Test.jpg.
1. To use this path I right click one of the sprites.
2. Double click one of the sprites and load the second image.
The second image is just green.
Looking at the image copied to C:\Test.jpg have been updated to use the green one instead.
Right clicking the sprites again to load from C:\Test.jpg makes them load the red image, even though the jpg file is the green one.
This only happens after you have used "Load image from url" (Right click the sprite).
The bug pretty much ruins the "load image from url" or NWjs open dialog depending on where the bug is. Would also be nice if you could pick which sprite it should load the image for, and not just all of them ignoring the picking.
Expected Result
That it would read the file from the path its told and not from maybe memory.
Affected Browsers
Don't know.
Operating System and Service Pack
Windows 7
Construct 2 Version ID
r200