As far as I read in the docs, I create Sprite resources which are linear: An image resource can be loaded and read in columns and rows, but a single sprite is generated. However, what I want to achieve is the following:
Import a single image with layout like this:
llll rrrr uuuu dddd
Meaning four frames per direction (left, right, up, down).
Allow my sprite to have four directions. In such case, the animation will involve just the row corresponding to the direction.
Allow the user to stay / not move. In such cases, I would use another image like this (most of the times it would be a subset of the former):
l r u d
Question: Before doing it in the hard way (which for larger games I did in ActionScript already; I'm not net at all at coding) I would like to ask:
- Is there an already supported way in the environment to do it? Like managing the related sprites as a set.
- Alternatively: Any good 3rd party plugin which already does that?
I have no problem at all with coding the solution on my own, but honestly I would not like to reinvent the wheel.