Lua math.random意外符号错误
我试图通过使用以下代码随时间增加math.random:Lua math.random意外符号错误,lua,coronasdk,Lua,Coronasdk,我试图通过使用以下代码随时间增加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 " ..
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))--下拉列表中获取“意外符号”错误
我怎样才能解决这个问题 只需在调用
badclouts:setLinearVelocity
时删除的两个实例。