View Full Version : Sprite Animations inside project possible?

31 Dec 2011, 9:53 AM
I was wondering what would be the most efficient way to add a sprite animation, such as a character walking, to a project made with Sencha animator.

So far I'm really impressed with this tool, but in order for me to buy it, I need to know that I can make it animate sprite sheets ( hacks are welcome).


3 Jan 2012, 9:53 AM
We are working on getting better sprite support into the app.

In the meantime, here are two ways that might work

1) In animator create an square object and set the overflow to hidden. Inside this object add an image object (your sprite sheet). Then you can animate the inner object and add two keyframes for each sprite. E.g. keyframe 1 at 0s shows sprite 1, keyframe 2 at 0.10s shows sprite 1, keyframe 3 at 0.101s shows sprite 2... etc...

2) Include some custom js, in the start action that will change the image position

//psudeo code

get sprite sheet
move sprite sheet so next sprite is shown

25 Apr 2012, 8:17 PM
I am looking for a way to add sprite animations as well, and wondering if this was added to the tool or we still have to use the method you describe.

26 Apr 2012, 6:57 AM
Not added to the tool yet, so you would have to used one of the methods described above.