[Thread Prev] [Thread Next]
Hello Alain!
does your explanation belong to MW2?
What do yo mean Rules Tab
WhenTab?
Dohat field ?
Vollix?
Thanks, Zehava
Alain LCSI <alain@xxxxxxx> wrote:
Hello,
The instruction that you are "foreverling" is
[pd setpos mousepos if (or ycor > 100 ycor < -100) [cancel [pd setpos
mousepos] t1, pu]
The instruction that you are "cancelling" is
[pd setpos mousepos]
They are not identical, so cancel will not work.
Try this:
in the turtle's backpack,
in Rules tab, in OnClick field, type:
TRACK
in Forever mode
In the Procedures tab type
TO TRACK
PD
SETPOS MOUSEPOS
END
in the Rules Tab, right-click in the WhenThis Dohat field and choose ADD
In the next dialog box, in the WHEN field, type
OUTOFBOUNDS
in the DOTHAT field, type
PU CLICKOFF
In the Procedures tab, type
TO OUTOFBOUNDS
OP (OR XCOR > 100 XCOR < -100 YCOR > 100 YCOR < -100)
END
Click on the turtle
Voilà
Alain Tougas
alain@xxxxxxx
B: (514) 939-8700 poste 237
Le 07-05-18 à 02:00, zehava wizman a écrit :
Hello forum!
Here attaced a file the turtle is going after mouse positionand have to
draw a line, but I want that mousepos and drawing will stopped according to
x-y cordinates.
Its doesn't work so. WHY?
thanks, Zehava
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends. <mousepos.mw2>
---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
Previous by thread:
Re: xcor - ycor problem
Next by thread:
Re: xcor - ycor problem
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|