Color Changing Sprites Cocos2d

前端 未结 3 1993
礼貌的吻别
礼貌的吻别 2021-02-10 22:10

I need my sprite to transition to one color to another and on and on... like blue tint then green then purple, but i cannot find any good actions for that and am wondering, shou

3条回答
  •  一个人的身影
    2021-02-10 22:49

    In case someone wanted this for cocos2d-x here is the code:

    somesprite->runAction(TintTo::create(float duration, Color3b &color));
    

提交回复
热议问题