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: problem with launch command
From: "Alain Tougas" <alain@xxxxxxx>
Date: Wed, 7 Feb 2007 10:12:09 -0500

Here is:

The procedure green is in charge of CREATNG a forever process. That being
done (I mean... when the forever process is created), the procedure green is
done. There is no point in cancelling it, it has stopped executing anyway.
The thing that is still running is the forever process. THAT is the thing to
cancel:

to green
t2,
forever [setsh 121 wait 2 setsh 123 wait 2]
end

to person
startup
green
go
cancel [setsh 121 wait 2 setsh 123 wait 2]
end

You can even integrate the green proc

to animation
startup
t2,
forever [setsh 121 wait 2 setsh 123 wait 2]
t1,
seth 180
repeat 22 [setsh 7 fd 3 wait 1 setsh 8 fd 3 wait 1 setsh 9 fd 3 wait 1]
cancel [setsh 121 wait 2 setsh 123 wait 2]
end

Or,

to animation
startup
t2, forever [flash]
t1, walk
cancel [flash]
end

to flash
setsh 121 wait 2 setsh 123 wait 2
end

to walk
seth 180
repeat 22 [setsh 7 fd 3 wait 1 setsh 8 fd 3 wait 1 setsh 9 fd 3 wait 1]
end



  -----Original Message-----
  From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of zehava
wizman
  Sent: February 7, 2007 1:07 AM
  To: forum microworlds
  Subject: [MWForum] problem with launch command


  Hello forum!
  Here attached a project using launch command.
  The person crosses  the road, during that time the green light has to
blink.when the person finishes the crossing , the light has to stop.
  The cancel command with the same procedure has to stop the blinking. It
doesn't do it WHY?
   thanks, Zehava



----------------------------------------------------------------------------
--
  Need Mail bonding?
  Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

  • Previous by thread: problem with launch command
  • Next by thread: RE: problem with launch command

  • 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