Sprite Sheet Problem

I’m working on my first sprite sheets and i’ve run into a problem. I have three sprite sheets, each of which contain two animations and I am using Zwoptex to assemble them. On each sheet it seems the last couple frames of the second animation drastically lose registration and end up cropped in the lower right corner. The first animation on all of the sheets works fine. I’m guessing this is because the .lua file that has the data for coordinates does not match the actual frames in the .png file. I’ve re-published a couple times trying different things and I still get the same result. Do I have to go in and manually realign the coordinates in my data file? [import]uid: 10356 topic_id: 3441 reply_id: 303441[/import]

I figured out what was wrong.

Basically, when making my sprite sets I had mistakenly thought the parameters were…

(spriteSheet, startFrame, endFrame)
rather than
(spriteSheet, startFrame, frameCount)

So it was adding extra frames to the sprite that were not on the sheet. The first sprites worked out because their end frame and frame count matched.

Oops! [import]uid: 10356 topic_id: 3441 reply_id: 10435[/import]