Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
making wings flap...Why is this not working?
Old
GijoeFan1976
Junior Member
 
Status: Offline
Posts: 9
Join Date: Sep 2016
Location: seattle
Default making wings flap...Why is this not working? - 10-11-2016, 02:06 AM

I tried to follow the person that did the butterflies, but not working. I tried to follow teacher but it got to complicated after all the changes.

thanks
Attached Images
File Type: jpg math.jpg (20.2 KB, 14 views)
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 10-12-2016, 01:22 PM

Quote:
Originally Posted by GijoeFan1976 View Post
I tried to follow the person that did the butterflies, but not working. I tried to follow teacher but it got to complicated after all the changes.

thanks
Look at your code. In the second 'Do Together' your wings do not move back to where they started (0.12 vs 0.20). Also if you want them to really flap they should probably move in a slightly different way.
  1. Move the wings some amount - you've chosen 0.2.
  2. Move the wings the oppisite way twice that amount. This takes them through 0 and to the other extream.
  3. Move back to the start, this would be the same as the first 'Do Togther' and the wings should be back where they started.
Also note that due to the way Alice creates the movie, moving in two directions at the same time and then trying to return to the original position does not always work.
If this is the problem capturing a pose before you start and then setting the pose after the 2nd "flap" should work. If you use timing when setting the pose Alice will morph it from where ever you start back to the beginning.

Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Old
GijoeFan1976
Junior Member
 
Status: Offline
Posts: 9
Join Date: Sep 2016
Location: seattle
Default 10-18-2016, 04:40 PM

Quote:
Originally Posted by chickentree View Post
Look at your code. In the second 'Do Together' your wings do not move back to where they started (0.12 vs 0.20). Also if you want them to really flap they should probably move in a slightly different way.
  1. Move the wings some amount - you've chosen 0.2.
  2. Move the wings the oppisite way twice that amount. This takes them through 0 and to the other extream.
  3. Move back to the start, this would be the same as the first 'Do Togther' and the wings should be back where they started.
Also note that due to the way Alice creates the movie, moving in two directions at the same time and then trying to return to the original position does not always work.
If this is the problem capturing a pose before you start and then setting the pose after the 2nd "flap" should work. If you use timing when setting the pose Alice will morph it from where ever you start back to the beginning.

Mark
Okay thanks I have got the wings Flapping by using A Loop but now the rest of the program(story) won't run while the are flapping?
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Smile 10-19-2016, 09:16 AM

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 event". Whenever you set the variable to "true" anywhere in the program, the wing-flap method will run continuously. When you set it to "false" the wing-flap method stops.
Attached Files
File Type: a2w whileTest.a2w (167.7 KB, 0 views)

Last edited by MrMoke; 10-25-2016 at 07:30 AM.
   
Reply With Quote
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
Old
bodyjohn
Member
 
Status: Offline
Posts: 28
Join Date: Oct 2018
Default 10-25-2018, 12:22 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 event". Whenever you set the variable to "true" anywhere in the program, the wing-flap method will run continuously. When you set it to "false" the wing-flap method will stop.
great explanation done mate! keep it up!

Last edited by bodyjohn; 10-29-2018 at 12:31 PM.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.