2D Toolkit Forum

2D Toolkit => Support => Topic started by: fsadeq on February 26, 2015, 06:23:29 pm

Title: Large TiledSprite with Animator?
Post by: fsadeq 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.
Title: Re: Large TiledSprite with Animator?
Post by: unikronsoftware 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.
Title: Re: Large TiledSprite with Animator?
Post by: fsadeq on February 28, 2015, 08:40:28 pm
Thanks.