Problem Description
Sorry for posting yet another one with this load image from url, but might as well get it fixed
Think this problem might be somewhat related to: https://www.scirra.com/forum/r200-load-image-from-url-or-nwjs-bug-v2_t128806
The problem is that you can't select individual sprites for loading image from URL, it doesn't respect picking.
This is an overview of the test program:
Three different images which each are linked to a sprite. Each sprite have 3 frames.
Using the code "Load image from URL" will give the following result. Even though it uses a For each and each of the sprite have different images attached.
Using the code "Load image from URL using index" will make the load from url load the correct images.
However using an index to load the images into the correct frames gives some problems. Since this is only a valid way to do it, as long as you know exactly how many images you need. If there are less frames in the sprite it wont work. So causes some issues, one is that load from url is not dynamic, but also picking certain sprites to be used for load from url is completely ignored and the image is loaded for all sprites and controlled by the number of frames in the sprite if you want to load separate images to them.
This also means that if you want to make it dynamic, in the sense that you don't know before hand how many images you need to load. You have to add empty frames to the sprite, which will use memory for no reason.
Attach a Capx
https://dl.dropboxusercontent.com/u/109921357/Load%20image%20from%20url%202/Load_image_from_url.capx
Description of Capx
Just load 3 images into 3 sprite instances
Steps to Reproduce Bug
Just run the program. Disable one of the groups.
Observed Result
Picking of sprites is not used when using Load image from URL. Resulting in use of unnecessary memory if you want to use it dynamically.
Expected Result
That images was load for the picked sprite and not just all of them.
Affected Browsers
Tested with NW.js
Operating System and Service Pack
Windows 7
Construct 2 Version ID
r202