sprite.lua module usage comparing methods graphics 1.0 vs. 2.0

Hi I’m developing my first game but yesterday i was trying to upload my binary to apple store and they failed, i was guessing maybe my version of corona sdk was outdated because i was using one from 8 month ago… then i updated for the new one and a lot of issues has appeared, especially with my sprites that i have a lot of them.

you only say to download the legacy module sprite.lua but there’s no full guide to use it and its not the same the way they get config than now for example:

—Sprite v1.

local A={width = 271.6,height = 480,numFrames = 5,sheetContentWidth = 1358,sheetContentHeight = 480,}

local SHEET = graphics.newImageSheet( “image.png”, A )

local SD = {{ name=“see”, frames={1,1,1,2,4,5,5,5,4,3,2,1 }, time=1400, loopCount=1 },}

local mysprite=sprite.newSprite(SHEET,SD)–bingo!!!

now i don’t know how to do it

i all ready import the module sprite.lua but

it’s not the same in github how they explain isn’t clear for me… do you have something more?

I downgrade the version and runs pretty well but i don’t know if ill have problem with future updates of my game and also if that’s what provoke the error when i try to upload my binary to apple store ERROR ITMS 9000 bundle invalid

Hi @Rene.castillo,

Are you seeking a guide on how to use the current sprite system? We have guides and tutorials here:

http://www.coronalabs.com/blog/2012/10/02/animated-sprites-and-methods/

http://youtu.be/VsA2agBAWho

And also it’s documented here:

http://docs.coronalabs.com/api/library/display/newSprite.html

The current system may look confusing, but it’s actually easier (IMHO) than the legacy system, and more sensible.

Best regards,

Brent

I downgrade the version and runs pretty well but i don’t know if ill have problem with future updates of my game and also if that’s what provoke the error when i try to upload my binary to apple store ERROR ITMS 9000 bundle invalid

Hi @Rene.castillo,

Are you seeking a guide on how to use the current sprite system? We have guides and tutorials here:

http://www.coronalabs.com/blog/2012/10/02/animated-sprites-and-methods/

http://youtu.be/VsA2agBAWho

And also it’s documented here:

http://docs.coronalabs.com/api/library/display/newSprite.html

The current system may look confusing, but it’s actually easier (IMHO) than the legacy system, and more sensible.

Best regards,

Brent