Alice Community  

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

Reply
 
Thread Tools Display Modes
Stop animation while it is playing
Old
Lordcorvin
Senior Member
 
Lordcorvin's Avatar
 
Status: Offline
Posts: 59
Join Date: Feb 2011
Location: Hogwarts:)
Question Stop animation while it is playing - 05-28-2011, 01:30 PM

How do i stop an animation if it started playing using the code without exiting the whole program?
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,186
Join Date: May 2010
Location: e4eaf2
Default 05-28-2011, 02:46 PM

Create an event.


While <condition> is true,
Begin: <None>
During: <play animation>
End: <None>


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
Lordcorvin
Senior Member
 
Lordcorvin's Avatar
 
Status: Offline
Posts: 59
Join Date: Feb 2011
Location: Hogwarts:)
Default 05-28-2011, 05:39 PM

Thanks, another question

Can you make that when one button is pressed then you can press another one?
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 05-28-2011, 06:46 PM

When you press the first button, have a boolean variable set value to true. Then, inside the method for the button press of the second button, put the whole method inside an if/else statement that only activates if the first variable is true.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 05-28-2011, 07:23 PM

you should check out my piano helper game or candle light piano games, because those are very well done and is pretty simple to see and understand

here is the link to the thread with the game on it http://alice.org/community/showthread.php?t=6539


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn

Last edited by sfunk; 05-28-2011 at 07:28 PM.
   
Reply With Quote
Reply

Tags
alice 2.2, animation, code, stop, world

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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.