[Thread Prev] [Thread Next]
On Fri, 06 Feb 2009 20:19:54 -0500, <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> This is an automatic message sent from the web form at:
> 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]
> if button = "(button's name) [Whatever I want it to do]
> So if there is a possible way to do that, please reply soon.
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.
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.