question about sprite sizes

Discussion and feedback on Construct 2

Post » Thu Nov 07, 2013 8:39 pm

I've been reading up a lot on sprites and how to optimize them. I read that it's best when using construct 2 to size the sprite to a power of 2 minus 2 pixels. But, I also read that you should always crop the transparent area off of the images before using them. So would it be better to have 20 to 30 126x126 sprites and keep the transparent areas or to crop them down and have 20 to 30 70x53 sprites, which would mean much less transparent pixels but not a power of 2 minus 2?
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Thu Nov 07, 2013 11:55 pm

It is far better to crop them. A power of two minus two is not the optimal size - it's just the biggest size that fits neatly in to a power-of-two size sprite sheet (with 1px of transparent spacing). If you use a smaller size, you'll be able to pack more animation frames in to a single sprite sheet, which will save memory.
Scirra Founder
B
403
S
238
G
89
Posts: 24,653
Reputation: 196,143

Post » Fri Nov 08, 2013 12:11 am

Thank you very much, that's exactly what I was hoping!
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest