Hello Guest

Author Topic: Sprite ID performance vs Animated Sprites?  (Read 4824 times)

Dajuice

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 45
    • View Profile
Sprite ID performance vs Animated Sprites?
« on: November 23, 2012, 05:07:04 pm »
Hello, I have a game that has several static sprites which change stance from time to time, nothing needing an actual timeline, they just switch between 2 static images when prompted to. Is it more optimized CPU and memry wise to just switch sprite ID in this case?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite ID performance vs Animated Sprites?
« Reply #1 on: November 23, 2012, 05:21:19 pm »
Yes it will be much more efficient to set spriteId on a tk2dSprite as opposed to using animated sprites.

Dajuice

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Sprite ID performance vs Animated Sprites?
« Reply #2 on: November 23, 2012, 06:05:41 pm »
Thanks for the quick reply!