Alice Community  

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

Thread Tools Display Modes
Dynamically Stopping a World.
Posts: n/a
Default Dynamically Stopping a World. - 03-01-2007, 02:08 PM

Hi everybody!!

Is it possible to dynamically stop a running world? For example, I have a world where a dancer dose some dance sequence with music. Once the dance sequence is over, the world should close itself.

Please help if anybody has any idea.


Reply With Quote
End of the World
Posts: n/a
Default End of the World - 03-02-2007, 08:19 AM

I haven't found a way to let the user close a World Running ... window from inside a world, short of modifying the underlying code, which I don't suggest.

Perhaps you could display an "End of the World" message that tells the user to click the stop button to continue. If you want to add sound effects, Here are a few ideas -- but watch out for copyright violations:

It's the End of the World as We Know It -- R.E.M.
End of the World -- The Cure
Until the End of the World -- U2
When the World Ends -- Dave Matthews Band
Reply With Quote
Related Question
Posts: n/a
Question Related Question - 03-02-2007, 09:52 AM

Along the same lines, have you found a way for the program to acknowledge that the user has clicked the stop button before it actually shuts down?

I've tried two ways without success:
1. If you just use a statement such as "Ground say goodby" in the end portion of the "While world is running" event, it's just ignored.
2. If you try call a method there, you get an error (see attached world).

Is there another way that works?

Attached Files
File Type: a2w goodby.a2w (163.8 KB, 317 views)
Reply With Quote

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