Yertle the Turtle

Richmond Mathewson richmondmathewson at gmail.com
Tue Jan 31 04:41:29 EST 2017


Thanks for the equations (I had in fact already worked those out), the 
problem was
not that, the problem is that (as far as I am aware) LiveCode cannot 
move objects
for fractions of pixels, so a move of , say, 30 forward at 30 degrees 
might (and I haven't done
the Maths yet) either be 29, 30 or 32 units.

Whether, in the great scheme of things this is that important is not clear.

Richmond.

On 1/31/17 8:22 am, Colin Holgate via use-livecode wrote:
> It is, as you said, going to need sin and cos. The X movement would be 30 * cos(37/180 * Pi), and the Y movement would be 30 * sin(37/180 * Pi), in your example case.
>
>
>> On Jan 30, 2017, at 11:14 PM, Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> The problem is not with drawing the line.
>>
>> The problem is how, when the turtle's "nose" is pointing at, say, 37 degrees from the vertical
>> one can get it to move FORWARD for 30 units.
>>
>> Richmond.
>>
>> On 1/30/17 11:46 pm, Tore Nilsen via use-livecode wrote:
>>>> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com>:
>>>>
>>>> 2.2. I wonder how my turtle will be seen to draw a pen line from the two ends of the "line".
>>> If you would like the “turtle” to move to the points of the line then, lock screen, draw the line, hide the line and unlock the screen before you start moving the “turtle”. Then no-one will ever see the line and you can delete last graphic once the turtle has stopped moving.
>>>
>>> Regards
>>> Tore Nilsen
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list