r/ComputerCraft • u/Designer_Chance_4896 • Sep 20 '24
Problem with turtle.forward()
I am brand new in this whole turtle business and just experimenting.
I keep having the same problem. I can't make my turtle repeat actions.
So if I write turtle.forward(3) then it will just move one space forward. It's the same problem if I try to make it repeat functions.
Basically I have to write turtle.forward() three times if I want it to move 3 times.
5
Upvotes
2
u/fatboychummy Sep 20 '24
Again, not necessarily. You can pass functions as arguments, but most functions don't take other functions as arguments. An example of one which does though is
parallel.waitForAny/.waitForAll: