1
stage:addEventListener(Event.ENTER_FRAME, 
function()
Graphic:setRotation(Graphic:getRotation()+ (Timer.delayedCall(math.random(4, 8) , 
function () speed = math.random(1, 30) 
return speed
end)
))
end)

Basicallu、私がやろうとしているのは、回転速度をランダムに変更することですが、毎秒変更したくないので、Gideros で Timer.delayedCall を使用してみましたが、 というエラーが発生しますattempt to perform arithmetic on a table value: Lua error message。どうすればこれを修正できますか?

4

1 に答える 1