wp7中的曲线运动动画
我使用 Blend 4(故事板)为小精灵创建动画运动。但现在我需要让小精灵在曲线路径上移动。我在代码中找到了一些解决方案(来自《Windows Phone 7 编程》一书)第 III 部分第 2 章 XNA。但是我只是想知道我们是否可以通过 Blend 4 或任何其他更简单的方法进行曲线移动?
I use Blend 4 (storyboard) to create animation movement for a wisp. But now I was required to have the wisp move in curve path. I have found some solution in code (from programming windows phone 7 book) Part III chapter 2 XNA. However I just wonder if we can make curve movement by Blend 4 or any other easier way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
动画故事板是最简单的方法,但如果您尝试沿着弯曲线等复杂路径制作动画,那么最好的方法是使用 PathListBox 类 (MSDN)。 PathListBox 类基本上可以让您轻松地沿着路径对对象进行动画处理,无论路径有多疯狂。
这里有一些链接供您查看。
Animation storyboards are the easiest way to go but if you're trying to animate along a complex path like a curvy line then the best way to go is to use the PathListBox class (MSDN). The PathListBox class basically will let you easily animate an object along path no matter how crazy the path may be.
Here are some links for you to check out.
这取决于您想要动画的动态程度。使用 Blend,您可以使用 故事板很容易创建这种类型的动画。故事板的缺点是它们的灵活性非常有限。如果曲线始终相同,我建议使用故事板方法。如果您需要动画具有很大的灵活性(实时),那么您必须用代码来完成。
It depends on how dynamic you want the animation. Using Blend, you can use Storyboards to create that type of animation very easily. The downside to storyboards is that they are quite limited in terms of flexibility. If the curves will always be the same, I recommend using the Storyboard approach. If you need a lot of flexibility in the animation (in real time), then you'll have to do it in code.