【发布时间】:2013-06-20 00:12:55
【问题描述】:
我试图通过使用此代码来增加 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)) 上出现“意外符号”错误——下拉
我该如何解决这个问题?
【问题讨论】: