Jump to content

DarnellMn

Members
  • Posts

    0
  • Joined

  • Last visited

Reputation Activity

  1. Like
    DarnellMn reacted to giuseppe in reference image   
    hello guys, the ability to use a reference in the background ... you can do this
    thanks ;)

  2. Like
    DarnellMn reacted to Pikarus in Python implementation?   
    Is there any working Python implementation yet?
    EDIT: I might attempt my own implementation soon, but I am still curious how others are doing it either in python if anyone else has been working on that or in other languages.
  3. Like
    DarnellMn reacted to terinfire in Spriter for C# Implementation Completed   
    After all of the effort I went through to figure out how Spriter works (thanks lucid!), I decided to release the code I have to the general public.
    https://bitbucket.org/terinfire/spriter-for-c/overview
    This has everything you need to read and process where you are.
    You can use ScmlLoader object to load an ScmlObject.
    After that, you can create a ScmlReference from here, wherein you set the ScmlObject you loaded previously. This now gives you access to that ScmlObject. From here, you can set the entity and animation, run an update, and call GetTimelineObjects(), which will return a list (ordered correctly) of the items you need to draw, along with all of their transforms. You will have to make a few adjustments based on your implementation -- for example, XNA's rotation is clockwise, while Spriter's is counter-clockwise. So you'll have to do something like: 360.0f - result.Angle; the coordinates for the Origin (Pivot X/Y) are also unique and need to be handled differently. Otherwise, everything else is pretty good/solid. I may include a sample project for monogame/XNA with this at some point.
    Disclosure:
    If you have any questions, feel free to ask. If you would like to include/build a sample project that uses this, let me know, and I will be happy to include it.
    UPDATES:
    2014.05.05 -- Updated to include a solution and fixed looping animations.
    Again, many thanks to lucid for entertaining/assisting my questions and helping me push through them.
×
×
  • Create New...