【发布时间】:2012-01-31 13:07:52
【问题描述】:
如果我有两层(添加到parallaxNode)并且在每一层上我都添加了精灵,我想限制玩家无法移除精灵的顺序,你有什么建议?直到它首先删除以前的:sprite1、sprite2、sprite3 和 sprite4 等等。
我正在使用Juan's example 进行动态触摸检测
对此的动态选项是什么?
更新:
if([sprite tag] == tag_collection_1 && [sprite GetCanTrack]) {
//Set others to NO & call remove sprite method
[[TSprite FindByTag:tag_collection_number] SetCanTrack:NO];
[self removeSpriteMethod:touchLocation];
} else if ([sprite tag] == tag_collection_number && [sprite GetCanTrack]) {
// and so on
}
【问题讨论】:
标签: iphone objective-c ipad enums cocos2d-iphone