In my page i am creating bombs which should be dropped on specified targets.
My problem is whatever is use (Timer,DoubleAnimation,KeyFrameAnimation) the motion of the falling bombs appear jerky.
Can anyone suggest how to create jerk free animations(in code).
Thanks..
In my page i am creating bombs which should be dropped on specified targets.
Share
First of all, testing animation is a bit problematic. I made a few animations that perform horrible in the eumulator ( even though I meet all the requirements like WDDM 1.1), yet they perform great on the device. Just have to check it on a device.
To made this kind of game I suggest the DispatcherTimer class to simulate game loop (I made my HelloWorld game which use it). You will have a general timer that helps you with all animations.
I think that the best fit is DobuleAnimation. So let’s code (inside Timer Tick event handler):
Also would be great to have some animation when bomb is catched/exploded. A sample:
You can find helper here
PS: I love Silverlight 🙂