我的英雄精灵在物理精灵上。如果玩家(用户)在接触精灵时不会移动英雄2秒,我想结束游戏。在更新方法中,我正在检查两个精灵是否触摸时间超过2秒,如果真正运行“游戏结束”操作。这是密码 if(TWO SPRITES ARE TOUCHING && USER ISN"T TOUCHING THE SCREEN){
[_hero runAction:[CCActionSequence action
在cocos2d v3中,找不到类似CCTargetedAction的内容。 它在我的项目中是必需的,所以我从cocos2d v2复制了代码。 @interface CCTargetedAction : CCActionInterval
/** This is the target that the action will be forced to run with */
@property