首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

clash of clans 用手指拖动房子,改变房子的位置,碰到别的房子会变红,可以放置的地方放置下来会变绿,想实现这个效果,没思路,怎么处理

2013-04-20 
clash of clans用手指拖动房子,改变房子的位置,碰到别的房子会变红,可以放置的地方放置下来会变绿,想实现

clash of clans 用手指拖动房子,改变房子的位置,碰到别的房子会变红,可以放置的地方放置下来会变绿,想实现这个效果,没思路,怎么办
clash of clans  用手指拖动房子,改变房子的位置,碰到别的房子会变红,可以放置的地方放置下来会变绿,想实现这个效果,没思路,怎么办
手机游戏 cocos2d
[解决办法]
最底层研究touches事件
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

想要简单点的,用手势

热点排行