Need help placing sprite frames...

As some of you may know i actually just yesterday night started learning sprites and all and still need help…

So i have an Image(in the attachments) It just something i made in paint in 10 seconds so dont laugh haha

Well i want the first “z” to start at the bottom left and then the second “z” to go to the right and above the first one and then the third “z” to be placed on the right and above the other two…  That make sense? Pretty much a typical sleeping “zzz” animation…

Heres some code to start with maybe,?

options = { frames = { { x=1, y=1, width=50, height=50, }, { x=21, y=1, width=50, height=50, }, { x=41, y=1, width=50, height=50, }, }, sheetContentWidth = 100, sheetContentHeight = 21 }

Thanks!

I told you before… hand coding this stuff is a waste of time.  Get a tool and package up your images as a spritesheet, then let the tool generate the info file (code you’re showing above).

It is tractable for very small samples, but any complex animation will become way too hard to hand massage.  

There are free tools out there if you can’t afford to buy TexturePacker.

As far as moving the sprite, that sounds more like a transition than something you need to do in the animation.  You could animate that, but now we’re talking about yet another tool to produce that effect and then package it up (i.e. generate code and spritesheet(s)).

So texture packer generates the code for me??

(still uploading)

https://www.youtube.com/watch?v=xMULkRcyLYw&feature=youtu.be

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/09/sprites3.zip

Note: Folks don’t forget I answer a lot of questions and give a lot of stuff away for free.  You should definitely crawl my GitHub archives.

Here is one: http://github.com/roaminggamer/RG_FreeStuff

Thanks! I got everything working like i wanted it to!

I told you before… hand coding this stuff is a waste of time.  Get a tool and package up your images as a spritesheet, then let the tool generate the info file (code you’re showing above).

It is tractable for very small samples, but any complex animation will become way too hard to hand massage.  

There are free tools out there if you can’t afford to buy TexturePacker.

As far as moving the sprite, that sounds more like a transition than something you need to do in the animation.  You could animate that, but now we’re talking about yet another tool to produce that effect and then package it up (i.e. generate code and spritesheet(s)).

So texture packer generates the code for me??

(still uploading)

https://www.youtube.com/watch?v=xMULkRcyLYw&feature=youtu.be

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/09/sprites3.zip

Note: Folks don’t forget I answer a lot of questions and give a lot of stuff away for free.  You should definitely crawl my GitHub archives.

Here is one: http://github.com/roaminggamer/RG_FreeStuff

Thanks! I got everything working like i wanted it to!