1
Support / Re: Help with Level Unlock System
« on: November 14, 2013, 03:47:00 am »
How do I actually reference the sprite?
Here is my code:
Is this correct? If not, how can I access the sprite, set the sprite and disable the sprite? Or replace it with another sprite which is disabled?
Here is my code:
Code: [Select]
tk2dBaseSprite test1 = new tk2dSprite(); //instantiating sprite object
test1.SetSprite("Skill 1 Icon Uncleared A"); // giving it a name of the game object
test1.enabled = false; // disabling it so users cannot tap on it
Is this correct? If not, how can I access the sprite, set the sprite and disable the sprite? Or replace it with another sprite which is disabled?