View Full Version : Dynamically Stopping a World.
nirmalmakadia
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.
Regards
Nirmal
chuck
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
DrJim
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?
Jim