2D Toolkit Forum

2D Toolkit => Support => Topic started by: Serge on July 18, 2017, 11:04:43 pm

Title: When resizing a sprite sheet, sprite definitions don't change??
Post by: Serge on July 18, 2017, 11:04:43 pm
Hey, if i change a sprite sheet in an sprite collection to have less sprites, the old sprite definitions in the tk2dSpriteCollectionData object still stay there. How can i get rid of them? Those are currently empty sprites that i want to get rid of for my tilemaps.
Title: Re: When resizing a sprite sheet, sprite definitions don't change??
Post by: unikronsoftware on July 21, 2017, 09:32:35 pm
Hi there,

I just answered your other post, but you've explained your use case here... the problem is the instances will need to be updated if the order changes. Do you only use your tilemap once per sprite collection? If so, there's an easy workaround - otherwise I can think of other ways to work around this, which may be easy to workaround.

There is also the scratchpad that allows you to draw a custom set of tiles / you can rearrange the tiles, but that may not work well enough in your instance.