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]

Subject: to advance the turtle
From: mwforum@xxxxxxxxxxxxxxxxxx (Daniel Ajoy)
Date: Fri, 10 Jan 2003 19:13:04 -0500

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.


    © copyright 2001 - 2008