How to set Up a Sprite

Hello everyone I was coding an animation and seeing some tutorials (cause I m new in programming field) i used this type of code

local sprite = require "sprite" local immaginesprite = sprite.newSpriteSheet("nuota.png" , 268, 168 ) local immagines = sprite.newSpriteSet(immaginesprite, 1 , 7 ) sprite.add( immagines ,"nuota", 1 , 7 , 150 , 0) local omino = sprite.newSprite(immagines) omino.x = display.contentWidth/2 omino.y = display.contentHeight/2 omino:prepare("nuota") omino:play()

but the system told me that there was an error due the fact that  the “sprite” library has been removed.

So can Someone make me an example on how setup a sprite.

Thanks in advance guys

Here’s the documentation on using sprites with Corona:

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

I would also suggest checking out the tutorials at T and G apps:

http://www.tandgapps.co.uk/resources/coronalabs-resources/

I ve tried with the frist tutorial but nothing… Now I m checking out the other link… If i solve this problem I will mark this post as solved

thanks very very much for your time

When you say “but nothing”, to what are you referring? I’d be happy to help if you are running into actual errors.

There are several sprite sample projects delivered with the Corona SDK install. I’d suggest trying out the Horse Animation and go from there.

Here’s the documentation on using sprites with Corona:

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

I would also suggest checking out the tutorials at T and G apps:

http://www.tandgapps.co.uk/resources/coronalabs-resources/

I ve tried with the frist tutorial but nothing… Now I m checking out the other link… If i solve this problem I will mark this post as solved

thanks very very much for your time

When you say “but nothing”, to what are you referring? I’d be happy to help if you are running into actual errors.

There are several sprite sample projects delivered with the Corona SDK install. I’d suggest trying out the Horse Animation and go from there.