-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could add setOpacity and setColor !!? #24
Comments
I think it's not a good idea to touch the alpha, because the animation might already deal with alpha. For tinting i have written the code which can be modified to set the alpha value as well. This works just like the replaceSprite() function. ---------------to be added to CCAnimNodeV2.cpp: draw() line Num: 517
////-------------------add these functions to AnimNodeV2.cpp and you have to declare them in AnimNodeV2.h void SuperAnimNode::resetSpriteColor(const std::string &theSpriteName) |
Using alpha to fade in/out is probably one of the most essential thing to 24 jul 2013 kl. 06:56 skrev vkbsb [email protected]: I think it's not a good idea to touch the alpha, because the animation ---------------to be added to CCAnimNodeV2.cpp: draw() line Num: 517
mSpriteColorMap.find(sAnimObjDrawnInfo.mSpriteId); ////-------------------add these functions to AnimNodeV2.cpp and you have void SuperAnimNode::resetSpriteColor(const std::string &theSpriteName) — |
ok if thats' what you need just add replace the alpha as well in the above On Wed, Jul 24, 2013 at 1:39 PM, StefanHQ [email protected] wrote:
|
CCNodeRGBA use Thanks a lot |
Hi Raymond:
Could you support setOpacity & setColor function like CCNodeRGBA?
Because sometimes we need to fadein/out or tint!!
Thanks you.
The text was updated successfully, but these errors were encountered: