【发布时间】:2014-05-04 23:53:42
【问题描述】:
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,但它给出了一个错误,上面写着 @ 987654322@。我该如何解决这个问题?
【问题讨论】: