Hello Guest

Author Topic: When resizing a sprite sheet, sprite definitions don't change??  (Read 3717 times)

Serge

  • Newbie
  • *
  • Posts: 12
    • View Profile
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.
« Last Edit: July 18, 2017, 11:14:24 pm by Serge »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: When resizing a sprite sheet, sprite definitions don't change??
« Reply #1 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.