hey guys today i am trying to spawn multiple sprite sheets but i seem to get an error “user Value” i never saw this error so i need some help, here my code
coinsTable = {"bubble"} coins = {} function spawnCoins() ranNum = math.random(#coinsTable) sheet2 = graphics.newImageSheet( coinsTable[ranNum], sheetInfo2:getSheet()) --coins[#coins + 1] = display.newImageRect( coinsTable[ranNum]..".png",128,128 ) coins[#coins].x = display.contentCenterX coins[#coins].y = display.contentCenterY\*3 coins[#coins].id = coinsNum transition.to( coins[#coins], {time = math.random (3000,6000),x = math.random(100,500), y=-570,onComplete = recycle}); screenGroup:insert(coins[#coins]) end totalcoins = 0 timer1= timer.performWithDelay( 8000, spawnCoins, totalcoins )
can some one help thanks