How do I import a PNG sprite sheet and run its animations?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
bryanedds
Posts: 2
Joined: Wed Sep 16, 2015 12:04 am

How do I import a PNG sprite sheet and run its animations?

Post by bryanedds »

I need to keep related animations in a single PNG sprite sheet so that they are loaded efficiently at run time in my game's engine, and also so they are easier to work with.

Adobe Edge Animate makes this easy with its `Import Spritesheet...` function. How do I do this with Anime Studio? Do I need a plug-in or something? It is so easy in Edge Animate, but Edge Animate is unusable for me for other reasons.
User avatar
slowtiger
Posts: 6315
Joined: Thu Feb 16, 2006 9:53 am
Location: Berlin, Germany
Contact:

Re: How do I import a PNG sprite sheet and run its animation

Post by slowtiger »

AS doesn't have a certain function for that. I think you have to import the PNG, then animate its position in combination with a mask.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15
Moho 14.1 Mac Mini M2 Pro OS 13.7.6
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 6:13 am
Location: UK

Re: How do I import a PNG sprite sheet and run its animation

Post by jahnocli »

You probably need a script of some sort. You could try offering money for a short script, as this is a very niche request.
You can't have everything. Where would you put it?
bryanedds
Posts: 2
Joined: Wed Sep 16, 2015 12:04 am

Re: How do I import a PNG sprite sheet and run its animation

Post by bryanedds »

Interesting. Fortunately since I'm a programmer, I think I should be able to hack something up and share it!

Thanks for the idea! I bet it'll be more useful than you might initially think, since it's a major feature in Edge Animate :)
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 3:31 am
Location: New Zealand

Re: How do I import a PNG sprite sheet and run its animation

Post by funksmaname »

It's probably more useful in Edge as that is meant for web delivery - but from a scripting perspective you'd probably want to either chop or import pre-chopped cells into a switch layer and put down the frames onto the timeline (or a scripted smart bone?) :)
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 6:13 am
Location: UK

Re: How do I import a PNG sprite sheet and run its animation

Post by jahnocli »

bryanedds wrote:Interesting. Fortunately since I'm a programmer, I think I should be able to hack something up and share it!

Thanks for the idea! I bet it'll be more useful than you might initially think, since it's a major feature in Edge Animate :)
Cool! I'll keep an eye out -- might be able to use something like that in the future...
You can't have everything. Where would you put it?
Post Reply