Alice Community  

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

Reply
 
Thread Tools Display Modes
creating a retry level button\restart button
Old
zantdoit
Junior Member
 
Status: Offline
Posts: 8
Join Date: Mar 2012
Default creating a retry level button\restart button - 03-27-2012, 04:28 PM

All,

I have created a restart and a retry level 3d text object..

I have a world variable of level which is changed with each level to call the next level.

The restart and retry work fine, but if the level has characters talking/thinking
when the restart/ retry button is selected , it restarts the level, but the talking from the first start of the level is still popping up. So I end up with two conversations at once and not saying things at the right time.

Question is how to i cause a method to stop all activity or get the say bubbles to stop popping up?

thanks

Zant
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 03-27-2012, 06:45 PM

Just use a number variable. Set it as 1, then when you restart tell it to set the number to 2. Then surround your talking method in an if/else statement and say if "number variable=1" do "talk". Else do nothing.


<Insert_Signature_Here>
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 03-28-2012, 02:04 AM

If that doesn't work, use a while statement. While statements are often used in this community to cut things off in the middle of a method when you otherwise couldn't.
   
Reply With Quote
While statement did not stop the popup bubbles
Old
zantdoit
Junior Member
 
Status: Offline
Posts: 8
Join Date: Mar 2012
Default While statement did not stop the popup bubbles - 03-29-2012, 04:44 PM

I tried to wrap all the text in while statements, they still do the says.

I think the real problem is that the girls have a lot of SAY statements in one method... So maybe the real question is how do I stop a method once it is started?

Or I may have to put the while around each and every say command? which is not the best logic... and would seem like over kill.
   
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 ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.