sprites vs tween

Hi All,

I have a problem, what is better. I have a lot of animations in my game and I can use two methods to handle them.

  1. sprites
  2. tweens

at this stage of development I’m getting the same visual results but, in case of sprites usage of memory is 20 times bigger, fps is the same, bin file is 5 times bigger. I think that I should develop tween animations during the rest of the development but I’m afraid that when I add much more tweens it will turn out to be less efficient than sprites.

What has the biggest impact on performance? Used RAM? Number of calculations required to move,scale,show/hide number of objects in case of tweens or something else?

Thanks in advance, Marcin [import]uid: 67745 topic_id: 30511 reply_id: 330511[/import]

anyoune know answer to my questions? HELP!

Marcin [import]uid: 67745 topic_id: 30511 reply_id: 122947[/import]

Hi Marcin,

It basically depends on your needs. Tweens are more efficient and conserve texture memory (one object “frame” versus many sprite frames). Sprites, however, are considerably more powerful and can do things that tweens never can.

If you’re getting the necessary visual effects using only tweens, then go ahead and use them! No reason to introduce sprites if you don’t need to.

You’re also not committed to one or the other. If you need sprite power later, use them AND tweens, separately or even concurrently. I sometimes tween my sprites and it looks great. :slight_smile:

Brent Sorrentino [import]uid: 9747 topic_id: 30511 reply_id: 122966[/import]

anyoune know answer to my questions? HELP!

Marcin [import]uid: 67745 topic_id: 30511 reply_id: 122947[/import]

Hi Marcin,

It basically depends on your needs. Tweens are more efficient and conserve texture memory (one object “frame” versus many sprite frames). Sprites, however, are considerably more powerful and can do things that tweens never can.

If you’re getting the necessary visual effects using only tweens, then go ahead and use them! No reason to introduce sprites if you don’t need to.

You’re also not committed to one or the other. If you need sprite power later, use them AND tweens, separately or even concurrently. I sometimes tween my sprites and it looks great. :slight_smile:

Brent Sorrentino [import]uid: 9747 topic_id: 30511 reply_id: 122966[/import]