From 0d1384fe289b6e490a98483bbec76ebc23e03969 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 27 Sep 2010 00:50:41 +0000 Subject: taking into account turtle skin size when mving turtle (#2378) --- (limited to 'TurtleArt/tacanvas.py') diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py index 8556e50..969ae33 100644 --- a/TurtleArt/tacanvas.py +++ b/TurtleArt/tacanvas.py @@ -642,8 +642,10 @@ class TurtleGraphics: self.tw.active_turtle = self.tw.turtles.get_turtle(k, False) self.tw.active_turtle.show() tx, ty = self.tw.active_turtle.get_xy() - self.xcor = -self.width / 2 + tx + 28 - self.ycor = self.height / 2 - ty - 30 + self.xcor = -self.width / 2 + tx + \ + self.tw.active_turtle.spr.rect.width/2 + self.ycor = self.height / 2 - ty - \ + self.tw.active_turtle.spr.rect.height/2 self.heading = self.tw.active_turtle.get_heading() self.setcolor(self.tw.active_turtle.get_color(), False) self.setgray(self.tw.active_turtle.get_gray(), False) -- cgit v0.9.1