[Thread Prev] [Thread Next]
Hi!
May I first suggest that you use a checkbox instead?
Create a checkbox (from Objects menu), name it "visibility".
Create a turtle, open its backpack.
In the OnTick field, type
ifelse visibility [st] [ht]
Leave the frequency at 10 (every second)
With that, every second, the turtle will check the value of the
checkbox named visibility.
The word visibility, being the name of the checkbox, will report true
or false, which is what ifelse needs.
Now with the slider:
Create a slider (from Objects menu), name it "visibility".
Set its min to 0 and its max to 1
Create a turtle, open its backpack.
In the OnTick field, type
ifelse visibility = 0 [st] [ht]
Leave the frequency at 10 (every second)
With that, every second, the turtle will check the value of the
slider named visibility.
The word visibility, being the name of the slider, will report o or
1, which will be used by the = sign, which will do its thing and
report the result of the comparison.
Bingo.
Alain Tougas
alain@xxxxxxx
B: (514) 939-8700 poste 237
Le 07-10-04 à 20:00, askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx a écrit :
This is an automatic message sent from the web form at:
http://www.openworldlearning.org/mia/howdoi.htm
from: Edwin < mudeen@xxxxxxxxxxxxxxxxxxxxx>
date: Thu Oct 4 18:00:45 2007
platform: PC
version: MicroWorlds Pro
Can you tell me how to use hide turtle (ht) show
turtle with a slider? Thank you for your help.
Edwin
Previous by thread:
MIA, Ask an Expert: ht-st with slider
Next by thread:
MIA, Ask an Expert: turtle as eraser
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.
|