[Thread Prev] [Thread Next]
In several versions of Logo and MicroWorlds, the command setpos does NOT
trigger color detection. The workaround is:
Inside your routine that makes the turtle follow the mouse pointer, ask the
turtle to do a ?fd 0?.
Make sure the turtle?s pen is up, otherwise it will detect its own drawings
instead of your maze walls.
Make sure your color is programmed to detect a turtle, not a mouse (which
requires a mouse click)
Or, you can program the turtle itself instead of programming the color.
Using ?ask? allows you to address this turtle without changing the project?s
current turtle (maybe there is another turtle somewhere, doing something
else).
A typical routine could be:
ask ?t1 [setpos mousepos fd 0]
AT
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of zehava
wizman
Sent: Wednesday, January 09, 2008 1:51 PM
To: help MW
Subject: mousepos command
Hello forum!
Is there a way to activate color command with curser that is designed with
setpos mousepos. there is a maze, the user ought to go in the narrow path
with the mouse. if he touching the line (without clicking it), the command
beyond the color has to activate .Nothing happened.
Zehava Wizman
_____
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
now.
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8
HDtDypao8Wcj9tAcJ%20>
Previous by thread:
mousepos command
Next by thread:
touch sensors programming
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.
|