Posted 14 April 2015 - 04:51 PM
Hi everyone
I recently made a program that is basically a build in gps system.
I also mad two other version of it, but those are more for fun.
1. Here is the code for the main program: http://pastebin.com/mWMv7rtr
It uses 7 arguments (i know it's a lot :lol:/>).
You just have to type in "name of program" the x, y, z coords of turtle the direction what the turtle is facing and then the x, y, z coords of the place you want him to go to.
example:
You could also easily use it in your own program where you want your turtle to go to a place do something and then come back.
So feel free to use it. :)/>
Then i got two other programs using the same basic code as above.
2. The second one http://pastebin.com/Vy4fKCbt
This one uses 3 arguments.
And here you must choice how much blocks you want him to go for- or backwards. –use negative numbers if you want him to go backwards
then you must choice how much up and down. –use negative numbers if you want him to go down
and the last one is how much blocks it should go to the left or right. –use here negative numbers if you want him to go to the left.
And when the turtle has moved it says how far and in witch directions it had moved.
3. And then last but not least http://pastebin.com/Qz1tr5xu
This one uses none arguments. luckily
And when you run the program
will it move to a random location.
and this one also says how far it moved.
If you edit this program you will be able to change totaly on the top how the maximum blocks it could move.
If you have any futher question please leave them down below. :D/>
I recently made a program that is basically a build in gps system.
I also mad two other version of it, but those are more for fun.
1. Here is the code for the main program: http://pastebin.com/mWMv7rtr
It uses 7 arguments (i know it's a lot :lol:/>).
You just have to type in "name of program" the x, y, z coords of turtle the direction what the turtle is facing and then the x, y, z coords of the place you want him to go to.
example:
moveTo -32 65 325 north -40 67 340
You could also easily use it in your own program where you want your turtle to go to a place do something and then come back.
So feel free to use it. :)/>
Then i got two other programs using the same basic code as above.
2. The second one http://pastebin.com/Vy4fKCbt
This one uses 3 arguments.
And here you must choice how much blocks you want him to go for- or backwards. –use negative numbers if you want him to go backwards
then you must choice how much up and down. –use negative numbers if you want him to go down
and the last one is how much blocks it should go to the left or right. –use here negative numbers if you want him to go to the left.
And when the turtle has moved it says how far and in witch directions it had moved.
3. And then last but not least http://pastebin.com/Qz1tr5xu
This one uses none arguments. luckily
And when you run the program
will it move to a random location.
and this one also says how far it moved.
If you edit this program you will be able to change totaly on the top how the maximum blocks it could move.
If you have any futher question please leave them down below. :D/>