Whether you’re able to set subpixel or not, keep the intended location in 
variables, and add your move to the variables, then set the location of the 
turtle to the updated variables. 

> On Jan 31, 2017, at 2:41 AM, Richmond Mathewson via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> 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@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@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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to