[Thread Prev] [Thread Next]
On 10 Jan 2003 at 11:16, Azim wrote:
> How can be intercepted a key and if maintained pressed to make to advance
> the turtle?
>
What about this:
to go
forever [
if key? [
make "dummy readchar
fd 20
]
]
end
(Project Attached).
This was a "hack" from code in this project:
C:\Program Files\Lcsi\MicroWorlds Pro\Help\MWVoc\primitiv\getpage.mw2
That project corresponds to the "key?" primitive help page.
Daniel
OpenWorld Learning
Attachment:
keypress.mw2
Description: Binary data
Previous by thread:
to advance the turtle
Next by thread:
to advance the turtle
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.
|