Load Indivudal image into sprites problem

Get help using Construct 2

Post » Mon Nov 25, 2013 1:17 am

probably animation speed not set to 0

"The problem with that is, the array changes dynamically. I am basically making a friends list inside Construct 2. So lets say I have 100 friends on my list, which is stored in a database, and I only created 50 frames in Avatar, then it would break that system."
I would only load the images on usage. You can store the images as data URI (string) in an array (I guess) and then just load it when you display it. This way you only will need as many frames as the number of avatars you display simultaneously.mindfaQ2013-11-25 01:27:25
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Mon Nov 25, 2013 1:21 am

I fixed it, setting animation to stop.

However, this method does not put into account of how many friends a user will have in my app. That is a dynamic variable right? I wont know how many frames to create, example would be, if a user has 200 friends, and I only created 100 frames, it would break the system we have here.

Edit: Unless I limit how many friends a user can have. But I wouldn't prefer thatGameThirsty2013-11-25 01:25:28
B
18
S
6
Posts: 348
Reputation: 2,633

Post » Mon Nov 25, 2013 1:47 am

Import 9999 frames : D

EDIT: I don't think you can import more than 3000 frames. My C2 crashes. So I guess that's your max friend count : Pplinkie2013-11-25 01:50:41
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Mon Nov 25, 2013 1:55 am

Looks like if you have more then 3000 friends you have no life, and you'd have to create a separate account. :p
B
18
S
6
Posts: 348
Reputation: 2,633

Post » Mon Nov 25, 2013 1:56 am

Or you're famous!
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Mon Nov 25, 2013 2:34 am

I guess the amount of friends over 3,000 isn't an oddity, I see people with Facebook friends over 3,000 hahaha
B
18
S
6
Posts: 348
Reputation: 2,633

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests