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