Randy Goldenberg wrote:
On Monday December 04, 2006, Ned Konz wrote:
The attached image is an example of a very simple state machine that provides the kinds of delays that would work in your application (provided you write your program correctly, of course!).
Hi,
I tried setting up things as pictured in the attached image, but my ellipse won't change colour. If I open up a viewer for it, I can see the colour assigned to "StateTest's color" changing, but on the ellipse itself nothing seems to be happening.
Is it possible that you have more than one object cloned?
Try doing a shift-click on the World and see if there are more than one stateTest objects.
Clicking on the '!' button on the turnRed or turnGreen scripts should change the color of the ellipse.
In order to write the scripts as shown, I created two stateTest variables, one called "currentState", which is assigned a script, and "delay", which is assigned a number. What else do I need to do (or undo) to get the ellipse to change colour?
(It also seemed odd to me that "stateTest's color" doesn't appear in the category "color & border". To get at it, I had to search on "color". Why is that?)
Thanks,
Randy _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners