如何获取精灵的动作 cocos2d

2025-05-08 02:09:12
推荐回答(1个)
回答1:

在创建动作的时候把动作action->setTag( tag ),然后需要的时候sprite->getActionByTag(tag);