开发者

curve movement animation in wp7

I use Blend 4 (storyboard) to cre开发者_运维问答ate 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?


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.

  • Creating a motion path with the PathListBox (from microsoft.com)
  • Silverlight 4 PathListBox for Motion Path Animation
  • Motion Path in Silverlight 4 using PathListBox


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜