Is it possible to make a loop step/edit in loop variable? Like:
a)(in other language)
for (var i, i<=10, i+=2) do ....
b)for i = 1, 10 do
...
i = i + 1
end
Basicly, how to make a loop advance on more then one each time?
Ok, when i try doing
for i = 1, 20 do
i = i + math.random(3)-1
end
Engine seems to generate to "i" variables, one is a loop variable, second is a normal variable. Any other ways to make loops with step, which is more then one?