module 'sprite not found

Hello!,

I Have a problem, my app run perfectly in the simulator but i wrote the sentence : require “sprite” in the file menu.lua and show this error in captura.jpg.

The version of corona sdk is : 

Corona SDK on Windows | Build 2015.2646

and the Operative System is Windows 8.1, but with Windows 10 had the same problem.

Please Someone can explain me what happens?

Thanks so much!

PD: My English is not very good, sorry :( 

Hi @manuelbacallado89,

You don’t need to require() the “sprite” library, it’s already part of the Corona core.

Best regards,

Brent

To be more specific, there is no “sprite” library any longer. Sprites essentially are now part of the “display.*” library and they are created using the “display.newSprite()” API.

Thank You. I’ll try and if it works I communicate by here =) 

It sounds like you are using some really old code. We deprecated the sprite.* API’s a while back and as Brent mentioned above.  If you’re just starting with your app, you should learn the new methods.  If this is a complete program you’re trying to update and it makes heavy use of the sprite library, it’s possible to get the old library, just as long as you know we are not supporting it (fixing bugs, offering help, etc. with it).

Rob

Finally, I used the display.newSprite() and the problem solved.

Thanks for all =) 

Hi @manuelbacallado89,

You don’t need to require() the “sprite” library, it’s already part of the Corona core.

Best regards,

Brent

To be more specific, there is no “sprite” library any longer. Sprites essentially are now part of the “display.*” library and they are created using the “display.newSprite()” API.

Thank You. I’ll try and if it works I communicate by here =) 

It sounds like you are using some really old code. We deprecated the sprite.* API’s a while back and as Brent mentioned above.  If you’re just starting with your app, you should learn the new methods.  If this is a complete program you’re trying to update and it makes heavy use of the sprite library, it’s possible to get the old library, just as long as you know we are not supporting it (fixing bugs, offering help, etc. with it).

Rob

Finally, I used the display.newSprite() and the problem solved.

Thanks for all =)