[Thread Prev] [Thread Next]
By the way, thanks for the other tip also as that is something like where Iam
going with this.
>>> wpetti@xxxx 11/20/01 10:36AM >>>
You are in luck! This is a case where the answer is
absurdly simple.
I too was puzzled until I dragged your turtle onto a yellow
rectangle and typed in the command center:
show colorunder
And what did the computer report????
44
So there's your problem. The poor cow is looking for color
45 and only finding color 44.
Do you want your cow to get cured after a certain amount of
time? You could modify the last lines of your code:
if colorunder =3D 44 [setc 25 resett]
if timer > 50 [setc 15]
graze
end
That way if the cow gets away from the parasites and stays
away for at least five seconds, he is restored to good
health. (Of course you would probably want to increase the
length of time if you use this idea.)
Wendy
> -----Original Message-----
> From: Gary McCallister [mailto:mccallis@xxxx]=20
> Sent: Tuesday, November 20, 2001 11:18 AM
> To: MWcybercourse@xxxxxxxxxxxxxxx=20
> Subject: Colorunder and setc
>
>
> I just began to try and develop a
> simulation, in Microworlds Pro for a grazing
> animal and how they might pick up ingestable
> parasites. I marked certain areas of the
> "pasture" to indicate parasite contamination then
> attempted to use color under to change the color
> of the "cow" from normal-red to infected-orange.
> However, the cow doesn't change color. I am not
> seeing what I am doing wrong on what I thought
> was a simple program. The first rough draft is attached.
>
>
> Send messages to: MWcybercourse@xxxxxxxxxxxxxxx=20
> To unsubscribe, e-mail:
> MWcybercourse-unsubscribe@xxxxxxxxxxxxxxx=20
>
> MWcybercourse messages are archived at:
> http://groups.yahoo.com/group/MWcybercourse=20
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/=20
Send messages to: MWcybercourse@xxxxxxxxxxxxxxx=20
To unsubscribe, e-mail: MWcybercourse-unsubscribe@xxxxxxxxxxxxxxx=20
MWcybercourse messages are archived at:
http://groups.yahoo.com/group/MWcybercourse=20
=20
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/=20
Previous by thread:
RE: Colorunder and setc
Next by thread:
Friendy Microworlds-related web sites
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.
|