for example
local Delta = -
for i = CurrentPosition.Y delta 1, PossibleMove.Y, delta 1 do
is there a method to storing + and - as varaible ?
for example
local Delta = -
for i = CurrentPosition.Y delta 1, PossibleMove.Y, delta 1 do
is there a method to storing + and - as varaible ?
You cant since luaUs grammar doesn’t recognize it. Also wouldn’t it be easier to just type out - and +?
Oh ok Thank you
also the number needs to go positive and negative
when i have needed to store the parity of a variable in the past, i would store either the value 1
or -1
it can then be multiplied with the variable who’s parity you are storing
local delta = -1
for i = CurrentPosition.Y + delta, PossibleMove.Y + delta do
here you are only adding or subtracting by 1, so delta*1
becomes delta
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.