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: MIA, Ask an Expert: switch condition
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Sat, 07 Feb 2009 11:57:16 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

On Fri, 06 Feb 2009 20:19:54 -0500, <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> 
wrote:

> This is an automatic message sent from the web form at:
> http://mia.openworldlearning.org/howdoi.htm
>
> from: David  <davidleeayres@xxxxxxx>
> date: Fri Feb  6 18:19:54 2009
> platform: PC
> version: MicroWorlds Ex
>
> Hi, it's me David, again. I got another question for you. Is there a 
> possible way to have a button's name in a conditional, so that when you click 
> a turtle. you set off a procedure that only sets off when the button is 
> clicked. If you don't understand, I'm making a ping pong game. I want it so 
> that there is an option of whether you want to have the ball start out moving 
> left, or right. When you click the turtle that has a 'left' or 'right' on it, 
> and you click a button with 'Play' on it, it the ball starts moving either 
> left or right, depending on what turtle you clicked, but I don't want it to 
> start moving, right when you click on it. I've tried to do this:
>
> if "(button's name) [Whatever I want it to do]
>
> and:
>
> if button = "(button's name) [Whatever I want it to do]
>
> So if there is a possible way to do that, please reply soon.


Hi David, 

You talk about clicking on turtles:

"When you click the turtle that has a 'left' or 'right' on it"

the change-direction-with-turtles.mwx file demonstrates that.

But you can also use a rounded button set.

the change-direction-with-rounded-button-set.mwx file shows you how.

Daniel
OpenWorld Learning

Attachment: change-direction-with-turtles.mwx
Description: application/mwx-plugin

Attachment: change-direction-with-rounded-button-set.mwx
Description: application/mwx-plugin


  • Previous by thread: MIA, Ask an Expert: switch condition
  • Next by thread: Teaching your kids how to write computer programs

  • 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