Corona SDK 对象路径
我一直在这里观看火星控制模板代码 http://developer.anscamobile.com/code /martian-control 我想尝试这个:飞船在行星上着陆而不绘制路径,我的意思是,每个行星都是某些飞船的目标,但我希望飞船不仅线性地移动到目的地,并且你必须先触摸它们才能摧毁它们 土地。但我不知道该怎么做。你们能指导我一下吗?
谢谢
I've been watching the Code of Martian Control Template here http://developer.anscamobile.com/code/martian-control and I want to try this: The ships land in the planets without drawing a path, I mean, each planet be the goal of certain ships but I want the ships move to the destination not only linearly, and that you have to touch them to destroy before land. But I dont know how to do that. Could you guys guide me about it please?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以为随机绘制的路径定义一个 Lua 表。 (我不知道你想要什么样的路径,如果你更具体的话,我可以考虑使用随机位置函数等来生成它。)然后,你对位置表中的每个点使用转换。
You can define a Lua table for your randomly-drawn path. (I don't know what kind of path you want, if you be more specific, I can think about its production with random location functions etc.) Then, you use transition for every point in your location table.