1

このコードを使用して、時間の経過とともに math.random を増加させようとしています:

testa = 100
testb = 150

badclouts:setLinearVelocity(0, math.random(.. testa, .. testb)) -- Drop down

local function speatTimer()
   testa = testa+1
   testb = testb+1
   --print("testa " .. testa)
   --print("testb " .. testb)
end
local mainTimer = timer.performWithDelay( 1000, speatTimer, 500 )

しかし、 badclouts:setLinearVelocity(0, math.random(.. testa, .. testb))で「予期しないシンボル」エラーが発生する- ドロップダウン

どうすればこれを修正できますか?

4

1 に答える 1

3

..への呼び出しでの 2 つのインスタンスを削除するだけbadclouts:setLinearVelocityです。

于 2013-06-19T16:12:55.463 に答える