Jump to content




basic control

turtle utility

  • You cannot reply to this topic
2 replies to this topic

#1 LipJ

  • New Members
  • 31 posts

Posted 02 April 2012 - 12: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

#2 EatenAlive3

  • New Members
  • 53 posts

Posted 02 April 2012 - 01: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.

#3 LipJ

  • New Members
  • 31 posts

Posted 23 April 2012 - 09: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!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users