我试图让精灵表运行4张图片,所以它播放动画,虽然Corona SDK给我一个错误说
" main.lua40:错误的论点#2到' newImageSheet' (表(选项)预期) stack traceback:[C]:in function' newImageSheet' main.lua 40:在主要部分"
exclamationMarkAnimations = graphics.newImageSheet("exclamationMarkAnimated.png", sheetOptions)
exclamationMarkAnimated =
{
width = 12,
height = 12,
numFrames = 4
}
animation = {
{
name = "bobbing",
start = 1,
count = 4,
time = 800,
loopCount = 0, -- "0" means always
loopDirection = "forward"
}
}
exclamationMarkVars = display.newSprite(exclamationMarkAnimations, exclamationMarkAnimated)
exclamationMarkVars:addEventListener("sprite", spriteListener)
感谢您的帮助。