How do I load multiple images in sprites from different URLs

Get help using Construct 2

Post » Mon Aug 11, 2014 4:28 pm

I'm creating sprites dynamically by parsing a webservice in php where I get all the images URLs, when I start to load every image in each sprite respectively everytime we load an image from its URL it loads it on all of the sprites. Why does that happens?

.Capx
loadImages.capx
You do not have the required permissions to view the files attached to this post.
Last edited by ffman22 on Mon Aug 11, 2014 4:35 pm, edited 1 time in total.
Carlo Andrei Mercado

Animator, illustrator, concept artist, special effects for games.

[email protected]

http://f-fman.wix.com/portfolio-ffman22

http://ffman22.deviantart.com/



tutorials:



https://www.scirra.com/tutorials/950/dynamic-mini-map dynamic-mini-map tutorial



https://www.scirra.com/tutorials/9479/p ... ing-damage falling damage platform tutorial



originally published by ffman22
B
62
S
19
G
4
Posts: 341
Reputation: 6,610

Post » Mon Aug 11, 2014 4:33 pm

They share the same texture to conserve memory.
If you must, try Tiled BG.
Image ImageImage
B
172
S
50
G
183
Posts: 8,440
Reputation: 115,599

Post » Mon Aug 11, 2014 5:10 pm

I've had this problem for very long time as well. Note that if you are loading pictures for side scroller character you cannot mirror Tiled BG.

It would help if NEW animation frames could be made during runtime.

Or would it be bad practise to make a lot of tiny frames for Sprites and somehow try to keep track of which Sprite should be showing what.

On CC I used R0J0hounds TextureSetter plugin.
B
34
S
9
G
3
Posts: 517
Reputation: 5,276


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 14 guests