【发布时间】:2019-04-23 12:01:57
【问题描述】:
我尝试更改为 ansi,但没有成功。 它在第 5 行:'.' 附近的意外符号
side = { 0, Arena.width }
function Update()
local chasingbullet = CreateProjectile('bullet', myTable[ math.random( #myTable )], math.random(0, Arena.height))
local chasingbullet.SetVar('speed', 0)
local dist = Player.x - chasingbullet.x
local speed = chasingbullet.GetVar('xspeed') / 2 + xdifference / 100
chasingbullet.Move(speed, 0)
chasingbullet.SetVar('speed', speed)
end
我搜索的每个地方,不要帮我说代码正常
【问题讨论】:
-
这是一个语法/解析错误:那么,哪一行和哪一行?在确定错误消息所指的内容之后,为什么错误有意义?提示:关于
local以及哪些变量是哪些变量不是。