i have a sprite that i use to be like a checkbox.
so i give that sprite variable instance "selected" wich means value=1 if selected and value=0 if not.
if the selected=0 the animation set "Default".
if the selected=1 the animation set "Selected".
when I touch/click the sprite, I set variable "selected=1", and animation turn to "Selected". But when I try to clicked it again, the sprite wouldn't turn back to "Default" animation.
anyone can help me?