I want to highlight a border of a sprite. I have a sprite type variable "m_sprImage" in which I want to highlight border.
I used below codes but not highlighting as per my game requirement.
TintTo* action = TintTo::create(0.1f, 255, 0, 0);
TintTo* actionReverse = TintTo::create(5.5f, oldColor.r, oldColor.g,oldColor.b);;
TintTo* actionReverse = TintTo::create(10.0f, 255, 255, 255);;
m_sprImage->runAction(Sequence::create(action, actionReverse, NULL));
m_sprImage->setOpacity(255);
Aucun commentaire:
Enregistrer un commentaire