How to show many different images on same sprite?

Get help using Construct 2

Post » Thu Mar 07, 2013 11:38 pm

I need to make a Facebook friend list with their pictures. I have one sprite for the picture, however due to this behavior (http://www.scirra.com/forum/sprite-loadimage-from-url-is-working-wrong_topic62033_page1.html), I cannot load different images on the same frame for different sprite instances.

Therefore, the question is, as a person may have 1k or more friends, how to achieve my goal? To create a sprite with more than 1k empty frames looks like a horrible idea to me...

B
7
S
1
Posts: 7
Reputation: 839

Post » Fri Mar 08, 2013 12:30 am

the whole idea of a sprite with over 1k frames sounds bad any way you look at it. I would advise changing your design instead trying to force it to do something that most likely wont perform well. Seems loading all those images will be a bear regardless of how you do it.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Fri Mar 08, 2013 1:10 am

wouldn't it be smartest to show a few at a time, and use AJAX to load new ones as old ones scroll offscreen? (while using a buffer... e.g. if you're showing 6 at a time, have 12 loaded (3 ahead, 3 behind in case they scroll either way)
B
6
S
1
G
1
Posts: 70
Reputation: 702


Return to How do I....?

Who is online

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