Jump to content

Parsing scml file for sprite coordinates


Recommended Posts

Hi guys,

I need to have each part's positions every 50ms in an animation so I can use them on sfml however I wish.

I don't want to spend alot of time to learn the whole spriter framework for c++. I just need to get part positions.(not bones)

is there any parser for that , or any information/little trick I can use so I can write a parser for the .scml file?


Is there any way to export that .scml file without bone informations but only sprite positions (x,y,rotation)(and idealy with custom determined intervals like 50ms)


best regards


EDIT: through searching old posts on forum, I've found this link http://www.brashmonkey.com/ScmlDocs/ScmlReference.html

BUT Most probably it's outdated. Calculating real X and Y values are not as shown in this reference page.

Right formulas (checked) : 

float realX = (y*s) + (x*c);
float realY = (y*c) - (x*s);

also you gotta multiply  ParentY and ChildY with -1 beforehand. Don't know the reason but they are written into the file with opposite signs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...