Project Folders
Teacher Resources
Student Resources
How Do I?
Site Map
Our Team

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

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: MIA, Ask an Expert: switch light
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Sat, 28 Feb 2009 00:48:54 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

On Fri, 27 Feb 2009 20:16:29 -0500, <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> 

> from: Laz <bbblaz@xxxxxxxxxxx>
> date: Fri Feb 27 18:16:29 2009
> platform: PC
> version: MicroWorlds Ex
> My question is: When a turtle changes shape, I need turtles to stop (not 
> just in random places) please explain how I can make them stop when one turtle 
> changes shape...
> The code im using (not sure if it will help)
> to stop
> if light sh= [2]
> endingpos
> end

In the attached project I use "clickoff", this a portion of the code:

when [touching? "t1 "switch] 
talkto "light setsh "red
talkto "car1 clickoff
talkto "car2 clickoff

OpenWorld Learning

Attachment: switch-light.mwx
Description: application/mwx-plugin

  • Previous by thread: MIA, Ask an Expert: switch light
  • Next by thread: MIA, Ask an Expert: switch light

  • 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