Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: xcor - ycor problem
From: "Mike Sandy" <mjsandy@xxxxxxxxxxxxxx>
Date: Sat, 19 May 2007 15:20:41 +0100

An alterative approach:
1. 
to test1
 t1,
 if and  (abs last mousepos) < 100 
        (abs first mousepos) < 100 
     [setpos mousepos]
end


to test
 cg
 forever[test1]
end


or just:
2.
to test
 t1,
 if and  (abs last mousepos) < 100 
            (abs first mousepos) < 100 
     [setpos mousepos]
 test
end

if you want to stop with the proc use:

 ifelse and  (abs last mousepos) < 100 
            (abs first mousepos) < 100 
     [setpos mousepos]
    [cancel[test1]] ; for 1. but you need the test button within the area


 ifelse and  (abs last mousepos) < 100 
            (abs first mousepos) < 100 
     [setpos mousepos]
    [stop] ; for 2. test button anywhere


Mike

  ----- Original Message ----- 
  From: zehava wizman 
  To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
  Sent: Friday, May 18, 2007 7:00 AM
  Subject: [MWForum] xcor - ycor problem


  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.

  • Previous by thread: Re: xcor - ycor problem
  • Next by thread: instructions for buttons on web version

  • 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.


    © copyright 2001 - 2008