Posted 15 March 2013 - 06:11 AM
Hello,
made a simple script in ssp for my turtle which contains a little file that records every step it does so incase i open/close the game the turtle will find it's way back and restart.
That was my plan, however in theory every time i exit/open the game the coordinates are off by 1 block.
Is there any solution to this, otherwise i will set up a gps.
Example of the code i am using: c[1] = X, c[2]= Y, c[3] = Z, c[4] = (f) direction
made a simple script in ssp for my turtle which contains a little file that records every step it does so incase i open/close the game the turtle will find it's way back and restart.
That was my plan, however in theory every time i exit/open the game the coordinates are off by 1 block.
Is there any solution to this, otherwise i will set up a gps.
Example of the code i am using: c[1] = X, c[2]= Y, c[3] = Z, c[4] = (f) direction
while not (c[3] == 2) do
if turtle.forward() then
c[3] = c[3] + 1
local file = fs.open("cord","w")
file.write(textutils.serialize(c))
file.close()
end
end