This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LipJ's profile picture

basic control

Started by LipJ, 01 April 2012 - 11:43 PM
LipJ #1
Posted 02 April 2012 - 01:43 AM
just thought I would add this as my first decent (ish) program. it allows any turtle with the program to be controlled from the console.

controls are as follows:-

move up: space
move down: left shift
move forward: up arrow
move backward: down arrow
turn left: left arrow
turn right: right arrow
dig (forward): return
place (slot 1): right shift

I will probably add slot selection soon.

question: does someone know how to make the console not visible?

get the code here: http://pastebin.com/qhHqkuDN
EatenAlive3 #2
Posted 02 April 2012 - 02:33 AM
You can change the size of the console GUI through the config. Alternatively, you could create a map as the turtle explores the area around it, and control the turtle from there.

Suggestions:
- Rednet for remote control, with the ID of the turtle you want to control.
- Key to repeat last action (if the last action was forward, repeat would go forward again.)
**Map of surroundings.
**Custom keybinds that do a certain re-programmable command. Example: bind("q", turtle.forward(), turtle.turnLeft(), turtle.select(3), turtle.place())

Nice work on what you have so far.
LipJ #3
Posted 23 April 2012 - 10:47 PM
Thanks for suggestions I will start working on them tomorow but it will take time to do the maping because it will probably use files and tables and I am still learning the basics of them so I may add that feture later. For now though, I will do the rednet and key binds. With a preference file so it will save your keys!