Jump to content

SubEntities implementation help


loudo

Recommended Posts

Hi,

 

I would like to add subentities support in my engine. Do someone have an idea on how to do that? It will be easier with an updated documentation, so I hope it will come soon :)

 

Also, this feature can be nice because game developers could also attach entities to a Spriter Point by code.

 

Thanks for your help.

Link to comment
Share on other sites

Hello @loudo.  Sorry for the delay in documentation, but in the meantime please feel free to ask any questions here or via email (lucid@brashmonkey.com).  I'll give a brief explanation, and let me know if you need any additional details.

 

First get the x,y,angle, and scale data (transformed by the parent bone, or the game object's current position, angle, etc if applicable), then apply that to the subentity as if it were it's own complete entity. 

 

in the scml or scon, the values for 'entity and animation', are the current entity and animation (by index or id) in the scml file that you should be playing, and the value 't' is the ratio of the time within the animation.  So t*animationLength=current time in animation.

 

Let me know if you need me to get more detailed, or anything that remains unclear.

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.

Guest
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...