Posted 19 October 2014 - 07:24 AM
My error is 299: '=' expected
299 is the elseif line
stepDir is for the option of a tunnel having steps up, or steps down.
stepSliceCount creates a step on every other advance.
299 is the elseif line
stepDir is for the option of a tunnel having steps up, or steps down.
stepSliceCount creates a step on every other advance.
function step()
if stepDir == 1 and stepSliceCount == 2 then
moveUp()
stepSliceCount = 0
elseIf stepDir == 2 and stepSliceCount == 2 then
moveDown()
stepSliceCount = 0
else
end
end