Cocos2d放大镜
Add a magnifier in cocos2d games 已经有人提出这个问题 但我不太明白答案。我正在使用 Let's Spot It 正在使用的相同教程,但我不确定将 madhu 的代码放在哪里。我也不知道 runAction 方法是什么样的。
谢谢
This has already been asked at Add a magnifier in cocos2d games
But I didn't quite understand the answer. I am using the same tutorial Let's Spot It is using but I'm not sure where to put madhu's code. I also don't know what the runAction method looks like.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯... Cocos2d CCLens3D,让程序员设置的区域弹出.. 请看cocos2d提供的例子..
代码:
self 是你的图像应该所在的图层..
ccp(size.width/ 2、size.height/2) 应改为 ccp(yourPosition.x, yourPosition.y),表示您希望弹出的位置。半径是圆的大小,持续时间是你想要它有多长,0.0意味着无限..网格只使用相同的值..
Hmm... Cocos2d CCLens3D, makes the area that is set by the programmer to popup.. Please look at the example provided by cocos2d..
the codes:
self is the layer where your image should be..
ccp(size.width/2, size.height/2) should be changed to ccp(yourPosition.x, yourPosition.y), means the positions which you want the popUp to be at.. Radius is the size of the circle, duration is how long you want it to be, 0.0 meaning infinite.. grid just use the same values..