Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 cocos2d 中,我动态创建了许多精灵,我需要在事件方法中获取当前触摸的精灵以进行拖放。
使用这种方法:
- (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ }
谢谢。
只是快速谷歌试试这个......
http://www.raywenderlich.com/2343/how-to-drag-and-drop-sprites-with-cocos2d