【问题标题】:How to turn the turtle toward its move direction?如何将乌龟转向它的移动方向?
【发布时间】:2014-05-22 07:37:31
【问题描述】:

Pencil code中,如何将乌龟转向它的移动方向或x,y点(相对于家)?

【问题讨论】:

    标签: turtle-graphics


    【解决方案1】:

    你可以使用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
    

    这是你需要的吗?

    【讨论】: