I’m currently porting a flash game from AS3 to Lua using the Corona Game Edition.
I decided I’d use sprite sheets for fast performance.
There’s a major problem with it - it doesn’t import my sheet properly.
My sheet’s height is 104px.
My sheet’s width is 4410px.
My sheet has a total of 14 frames.
I’m able to animate through it, however I’m not able to specify any frame height above 12px (therefore I can only see the tops of each frame) without getting the error message:
FYI, the texture size limit for the iphone is 1024x1024. So your sheet is to big and I would expect to see problems with it in general and not only related to the Game Edition.
[import]uid: 5712 topic_id: 1353 reply_id: 3687[/import]
Is there a program I can use to re-organize my sprite sheet so that it fits within that limit?
If not, is there a program that will take a sprite sheet and separate each image so I can simply use the MovieClip class? [import]uid: 7366 topic_id: 1353 reply_id: 3691[/import]
If you have each frame in the sheet as a separate image, then there are a number of utilities that can help you reorganize them. A good one is Zwoptex – and it’s free! [import]uid: 54 topic_id: 1353 reply_id: 3927[/import]
The maximum texture size limit on newer-generation iPhones and the iPad is 2048 x 2048, but 1024 x 1024 is the safe size if you want total backwards compatibility.
The Zwoptex online version is still free: http://www.zwoptexapp.com/flashversion . It’s confusingly named “flash version”, but that’s because it’s written IN Flash, not FOR Flash. [import]uid: 3007 topic_id: 1353 reply_id: 4135[/import]