Massive amount of sprites: memory & performance tips?

Get help using Construct 2

Post » Sat Nov 28, 2015 5:06 pm

I'm sure you guys are familiar with games that have a huge amount of collectable cards/characters/monsters, games like pokemon, hearthstone, puzzle and dragons etc.

How should I go about storing several cards/characters in Construct 2? I was planning on just having one sprite and giving it hundreds of animations or frames (1 per character) which would make it easy to call the right cards from an array but then again I feel like dealing with that one sprite would be extremely heavy on performance.

Many (mobile) games with collectables seem to not store all the characters in the game file but load the sprites when needed from a server. I believe this is possible with AJAX object in C2, right? I don't have any experiance with that though.
"If you don't build your dream, someone else will hire you to build theirs"
B
12
S
3
G
1
Posts: 53
Reputation: 905

Post » Sat Nov 28, 2015 5:26 pm

Construct has the "load image from url" option, which might suit you..
Just add the images as project files and load them into your sprite(s) when needed..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Nov 28, 2015 5:52 pm

LittleStain wrote:Construct has the "load image from url" option, which might suit you..
Just add the images as project files and load them into your sprite(s) when needed..

Oh wow, that's actually way easier than I thought it would be. Funny how I've used C2 for over a year and never noticed sprites could do that.

Thanks a lot! :)
"If you don't build your dream, someone else will hire you to build theirs"
B
12
S
3
G
1
Posts: 53
Reputation: 905


Return to How do I....?

Who is online

Users browsing this forum: lennaert, ThePakernator and 12 guests