Flash 对象层次结构
这是一个关于 Flash 中的对象和实例的简单概念问题:
假设我有一个腿部库对象,然后在另一个对象中使用该对象来创建人类,并且在主项目阶段使用该人类。如果在主项目阶段的单独动作层中,我添加与腿的碰撞事件,它会起作用吗?
here is a simple concept kind of question about the objects and instances in flash:
lets say i have a leg library object, which is then used in another object to create a human, and the the human is used on the main project stage. If, on the main project stage, in a separate actions layer, I add a collision event with the leg, would it work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的。你会瞄准腿。
Yes. You would target the leg.
是的,它的工作原理取决于你如何进行碰撞。如果你想让它先碰撞身体,然后碰撞腿部,它可能行不通。但是,如果您尝试仅对腿和其他部分单独进行碰撞,那么您应该能够使其正常工作。
yes, it would work depending on how you do the collision. If you want it to do collision for the body first, and then the leg, it likely will not work. But if you try to do collision only for the leg and other parts individually, then you should be able to get it to work.