Re: Sprite animation software
Posted: Wed Sep 10, 2014 10:50 pm
It's certainly possible with my Spriter library, but currently it would require a bit of understanding of the internals of the data structure to accomplish. I calculate all position/rotation interpolation for every render, and this is done hierarchically from the root bone down to the "leaf" nodes. You'd have to intercept the transformation of your desired node at the point at which its transformations are being applied.nuno wrote:
one further question, do you know if it is possible from the API of either spine or sprite, to control one aspect of the skeleton without using animations?
for instance, I want the head of the character to keep looking at the mouse cursor, so I just need to rotate one bone continuously.
is this possible?
I am using a similar approach for swapping out images to be rendered:
Code: Select all
function Spriter:getSwappedImage( imageName )
local name = imageName
if self.imageSwaps[imageName] then
name = self.imageSwaps[imageName]
end
local altFile = self.filenameLookup[name]
assert(altFile, "Unable to lookup image " .. tostring(name))
return altFile
end