Sprite size efficiency

Just started using Construct 2? Post your questions here

Post » Mon Feb 02, 2015 4:37 pm

Hi,
this might be a bit of a noobish question, but I was wondering if it is more efficient to use one big sprite and just scale that one down when you need a smaller variant, or if it's better to use a set of (the same) sprites with different sizes.

Context: I'm creating a racing game where I'm using rocks (among other things) as obstacles. They're just simple sprites with a solid behavior and when the player hits them it damages the car. I'm going to use these rocks in different sizes throughout the game and level, but want to keep the game running as efficiently as possible. Therefor I'm not sure if I should use one big .PNG as a sprite and scale that one down, which would mean less sprites for the player to download. But maybe this also means that the game is heavier to run for the player as there could be lots of high res pictures on screen at the same time.

Anyone knows how this works in construct?
B
12
S
2
G
1
Posts: 34
Reputation: 741

Post » Mon Feb 02, 2015 4:59 pm

What's the biggest size you need?
Use that.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Tue Feb 03, 2015 8:23 am

Even if the biggest size I need is for example 1024x1024 and I usually only need a 64x64?
B
12
S
2
G
1
Posts: 34
Reputation: 741

Post » Tue Feb 03, 2015 4:18 pm

You'll have to figure out the nearest size you can upscale to. 1024 is not really a reasonable size for just a rock imo.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Wed Feb 04, 2015 9:49 am

You're right, it was an exaggeration to help make my question more clear. ;) Thanks for the help! :)
B
12
S
2
G
1
Posts: 34
Reputation: 741


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest