Sprite / Character Animation in Silverlight (v2)

We have a Silverlight 2 project (game), which will require a lot of character animation. Can anyone suggest a good way to do this. We are currently planning to build art in Illustrator, imported into Silverlight through the Mike Snow plugin, as this matches the skills of our artists.

Is the key animation key our only option here? And if so, what is the best way to do this? Hundreds of individual pngs, or is there some way in Silverlight to draw only part of a larger image?

+4
source share
3 answers

You can use the Clip property on the image itself or on the container to display the image of a specific fragment of a larger image, such as a sprite sheet. It may or may not be more effective than replacing png. You can also use ImageBrush on the rectangle to show only what you want, it will probably be a little more efficient than the Clip property.

+3
source

I just posted some code using Bill's suggestion regarding Rectange and ImageBrush.

+2
source

Silverlight at this time does not support raster effects and does not have libraries for image management. Now you can use keyframes animation from one png to another.

Now you can get the raw bytes of the image. If you have your own image processing libraries, you can compile them using the Silverlight libraries, and then use the library in the Silverlight application.

0
source

Source: https://habr.com/ru/post/1277181/


All Articles