2D Toolkit Forum

2D Toolkit => Support => Topic started by: Mikael1987 on August 11, 2013, 12:32:50 pm

Title: How can I change the sprite ID?
Post by: Mikael1987 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.
Title: Re: How can I change the sprite ID?
Post by: unikronsoftware 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.