[r101] Sprite "Load from URL" loads into all

Bugs will be moved here once resolved.

Post » Sun Sep 02, 2012 10:17 pm

Hi

The sprite "load from URL" loads the same image into all objects create from a sprite object. It should load the image only into the target object.

For example, creating 10 sprite objects and loading a different image into each will result in all 10 objects displaying the last loaded image (rather than 10 different ones). See:



results in:



(the actual image displayed changes depending on which is loaded last).

Here is the capx:

test.capxbenji7202012-09-02 22:20:17
B
4
Posts: 13
Reputation: 376

Post » Mon Sep 03, 2012 5:26 pm

This is by design. Sprites and Tiled Background objects all share the same set of images, for memory efficiency. I'm afraid I don't think we will change this.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Sep 04, 2012 12:18 am

OK, thanks.

No big deal anyway, just seems I need to go back to creating 'sprites with 500 blank images' ! http://www.scirra.com/forum/create-a-sprite-with-blank-frames_topic54439.html )
B
4
Posts: 13
Reputation: 376


Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests