Hello Guest

Author Topic: Large TiledSprite with Animator?  (Read 4269 times)

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Large TiledSprite with Animator?
« on: February 26, 2015, 06:23:29 pm »
I know it's possible to create large tiled sprites: We have a 64x128 tile that is animated and want to create a large waterfall with this same repeated sprite. So I've made a Tiled Sprite, changed the dimensions to really large, and added the animator. It works, but wondering if this is the best way to achieve this? I feel like this is performance heavy and I notice garbage collections on the TiledSprites. Should I be doing something like this outside of 2DTK? Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Large TiledSprite with Animator?
« Reply #1 on: February 27, 2015, 12:29:07 am »
Probably not a good idea - the tiled sprite was never designed for animation. For a large sprite like that you'd probably do a lot better creating a script that does flipbook animation on the material.

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Large TiledSprite with Animator?
« Reply #2 on: February 28, 2015, 08:40:28 pm »
Thanks.