i have a problem but i dont know what is the problem
the error is “bad argument #2 to ‘newImageSheet’ (for single frame size, ‘options’ table must contain valid ‘width’ and ‘height’ values)”
please help me
this is my code
local storyboard= require(“storyboard”)
local scene=storyboard.newScene()
sprite = require “sprite”
function scene:createScene(event)
local screenGroup=self.view
local fondo=display.newImage(“bg.png”)
screenGroup:insert(fondo)
–techo=display.newRect(0,0,display.contentWidth,1)
techo=display.newImage(“invisible.png”)
techo.anchorX = 0.0;
techo.anchorY = 0.0;
techo.x=0
techo.y=0
screenGroup:insert(techo)
suelo=display.newRect(0,display.contentHeight,display.contentWidth,1)
screenGroup:insert(suelo)
ciudad1=display.newImage(“city1.png”)
ciudad1.anchorX = 0.0;
ciudad1.anchorY = 0.0;
ciudad1.x=0
ciudad1.y=320
screenGroup:insert(ciudad1)
ciudad2=display.newImage(“city2.png”)
ciudad2.anchorX = 0.0;
ciudad2.anchorY = 0.0;
ciudad2.x=0
ciudad2.y=320
screenGroup:insert(ciudad2)
naveSpriteSheet=sprite.newSpriteSheet(“nave.png”,100,34)
naveSprites=sprite.newSpriteSet(naveSpriteSheet,1,4)
sprite.add(naveSprites,“naves”,1,4,1000,0)
nave=sprite.newSprite(naveSprites)
nave.x=0
nave.y=100
nave:prepare(“naves”)
nave:play()
screenGroup:insert(nave)
naveIntro=transition.to(nave,{time=1000,x=100,onComplete=naveReady})
explosionSpriteSheet=sprite.newSpriteSheet(“explosion.png”,24,23)
explosionSprites=sprite.newSpriteSet(explosionSpriteSheet,1,8)
sprite.add(explosionSprites,“explosions”,1,8,2000,0)
explosion=sprite.newSprite(explosionSprites)
explosion.x=200
explosion.y=100
explosion:prepare(“explosions”)
explosion:play()
–explosion:isVisible=false
screenGroup:insert(explosion)
cript1=display.newImage(“mine.png”)
cript1.x=400
cript1.y=100
screenGroup:insert(cript1)
cript2=display.newImage(“mine.png”)
cript2.x=400
cript2.y=100
screenGroup:insert(cript2)
end
function scene:enterScene(event)
end
function scene:exitScene(event)
end
function scene:destroyScene(event)
end
scene:addEventListener(“createScene”,scene)
scene:addEventListener(“enterScene”,scene)
scene:addEventListener(“exitScene”,scene)
scene:addEventListener(“destroyScene”,scene)
return scene