Spritesheet in Silverlight

前端 未结 2 1174
既然无缘
既然无缘 2020-12-16 03:49

Does anyone have an example of using a spritesheet in Silverlight? I\'d like to clip the image and, when a button is pressed, jump to the next frame. (If the user keeps tapp

2条回答
  •  天命终不由人
    2020-12-16 04:20

    Here is another solution that works with any sprite sheet you create, just add the key code.

    If you are willing to use Sprite Vortex (a specific version actually) you can use the following class. You have to use Sprite Vortex 1.2.2 because in the newer versions the XML format is changed. Make sure that the XML file you add the property is changed to "Do not compile".

    If you need a working example I can send you a very simple one.

    p.s. Sprite Vortex should do the same thing you use the other program for, however v 1.2.2 is pretty buggy but not too bad.

    the class is here : http://pastebin.com/sNSa7xgQ

提交回复
热议问题