Understanding sprites

0 favourites
  • 4 posts
From the Asset Store
If you understand BRAAAM then you know exactly what inspires this epic sound library.
  • Hello C2'ers,

    This may seem like a dumb question, but I'm still quite new to all of this so my apologies if it is!

    I've been thinking about performance, and have learned that it is directly affected by the number of sprites you have on your layout.

    My question is a two-parter so here goes;

    1. Is it better for performance to have 10 sprites with 10 different images, or 1 sprite containing 10 images. Or does it make no difference whatsoever.

    &

    2. When people mention the number of sprites on screen do they mean individual sprites, or does it also include separate instances of the same sprite.

    My apologies again if this seems like a stupid question, but I'm still trying to understand the fundamentals, and I think a better understanding of sprites can help me.

    Thanks in advance for taking a look at this or commenting.

  • 1. Matter of preference. You need to put 10 different sprites in a family to be able to sort through them. If you put 10 images into 1 sprite, you need to handle displaying proper image as well as use a private variable to determine the sprite's role. Performance wise, not that much difference, I think. Others might have more to say on this topic.

    2. Number of instances.

  • Thanks for the info <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Obligatory link to performance tips

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)