View Single Post
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 10-19-2016, 04:24 PM

Quote:
Originally Posted by MrMoke View Post
That is where some advanced features come into play. Create a Boolean variable. Then create a new event, and modify it into a while the variable is true, perform the wing flap. Whenever you set the variable to true, the wing-flap method will run. When you set it to false the wing-flap method stops.
Great Answer!

Remember the flap method you use in the event should not have a loop in it. The event will be called repeatedly whenever the variable described above is true.

The original problem comes from the fact that you created some form of a "do this forever" loop because you wanted the wings to keep flapping. There are a couple of ways to get around this but the event described above is the simplest and in general the best performing.
I mention this because you should understand why Alice was acting the way she was.

Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote