Hello Guest

Author Topic: How can I change the sprite ID?  (Read 3910 times)

Mikael1987

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
How can I change the sprite ID?
« on: August 11, 2013, 12:32:50 pm »
Im creating a sprite collection with 12 different images numbered 1 to 12,when i created whe collection the first 1 is ID'ed 1,the second 2 but the third is 0,not quite sure why this is happening,At first i thought it had to do with the ASCII code,but sprite "10" is ID'ed as 10. Is there a way so I can manually set up the id of each sprite?. Thanks in advanced.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How can I change the sprite ID?
« Reply #1 on: August 11, 2013, 05:40:37 pm »
There isn't, unless you manually import the sprites one by one instead of dragging all the images in directly.
The IDs are an internal constant reference for the sprites and have no particular order - it is pretty much random what order they get imported in.