문제

In Pencil code, how to turn the turtle toward its move direction or toward a x,y point (relative to home)?

도움이 되었습니까?

해결책

You can use 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

Is this what you need?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top