Quote:
Originally Posted by elc317
I am looking for a way to start and stop ferris wheel for a class project using the color of the bump and a 2 button switch. I have attached project, Please help.
Thanks
|
Events is the right way to do this but you are making it too complex.
- Create a Boolean in the world. (I called mine "fRun" and initialze it to false.
- Use the "when the mouse is clicked on the green switch" event to set fRun to true.
- Create a "when the mouse is clicked on the red button" event and use is to set fRun to false.
- Change the While event to "while fRun is true"
- In the While event clear out the begin setting and set the During section to ferriswheelSpin.
- Take out everything in ferriswheel Spin except the instructions to make the wheels spin.
- Put all the wheel spin statements within a "Do Together" block.
The fRun Boolean is now controlled by the push buttons on the switch and the event will cause the wheel to spin as long as fRun is true and the world is running.