【发布时间】:2014-05-22 07:37:31
【问题描述】:
在Pencil code中,如何将乌龟转向它的移动方向或x,y点(相对于家)?
【问题讨论】:
标签: turtle-graphics
在Pencil code中,如何将乌龟转向它的移动方向或x,y点(相对于家)?
【问题讨论】:
标签: turtle-graphics
你可以使用turnto:
help turnto
turnto(degrees) Turn to a direction. North is 0, East is 90: turnto 270
turnto(x, y) Turn to graphing coordinates: turnto 50, 100
turnto(obj) Turn to page coordinates or an object on the page: turnto lastmousemove
这是你需要的吗?
【讨论】: