diff options
Diffstat (limited to 'TurtleArt/tacanvas.py')
-rw-r--r-- | TurtleArt/tacanvas.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py index 88a9e5d..9928d51 100644 --- a/TurtleArt/tacanvas.py +++ b/TurtleArt/tacanvas.py @@ -569,7 +569,10 @@ class TurtleGraphics: def move_turtle(self): """ Move the turtle """ x, y = self.width / 2 + int(self.xcor), self.height / 2 - int(self.ycor) - self.tw.active_turtle.move((self.cx + x - 28, self.cy + y - 30)) + self.tw.active_turtle.move((self.cx + x - \ + self.tw.active_turtle.spr.rect.width/2, + self.cy + y - \ + self.tw.active_turtle.spr.rect.height/2,)) def invalt(self, x, y, w, h): """ Mark a region for refresh """ |