I'm trying to do this, as per the script documentation.
tk2dBaseSprite.SetSprite (tk2dSpriteCollectionData newCollection, int newSpriteId )
but i get Assets/Scripts/Player.js(384,56): BCE0005: Unknown identifier: 'KuchoShirtCollection'.
KuchoShirtCollection is the name of my sprite collection just like i have it on the project folder , yes i name my sprite collections ending on "collection" to avoid confusions
the question is how to get the tk2dSpriteCollectionData from code? javascript if possible, thanks