-3

enter image description here

#Need to figure out turtle's location.
#Need to know it's x/z location in a variable and it's y co-ordinate in another variable seperatley to the x/z co-ordinate

I need something like TurtleX = ... TurtleY = ...

so I can use these in my game.

  • Don't post images of code. Code should be posted into the question itself as formatted text, i.e. code blocks. Read [mre] about what needs to be included. – Ted Klein Bergman Sep 23 '21 at 13:32

1 Answers1

0

If I correctly understood, try this

>>> turtle.pos()     # -> (x, y)
>>> turtle.xcor()    # -> x
>>> turtle.ycor()    # -> y

If you need more info i`m strongly recommend this site