[MWForum]Stopall
Harvey Bornfield
mwforum@lists.mathcats.com
Tue, 09 Sep 2003 10:53:25 -0700
--=====================_4067318==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
Lara:
You would want to perform a stopall before you exit the current page, and
place a few lines of "cleanup code" as well in that page-switching
procedure. Such 'clean-up' code could be used to track information like
what activity was going on in the environment you're exiting, (what
programs are running before you blugeoned everything with a stopall), what
sounds are playing, and optionally, saving the background graphics.
What this potentially accomplishes is that upon a button initiated return
to that page at a later time, you can attach another procedure to restore
the same environment - i.e. all activity on every turtle "silenced" at
last exit from that page. You can do this utilizing ask "t1 [clickon]. If
the command to use background music is incorporated as part of a turtle
procedure, that can also be automated.
This is how one begins to experiment with developing software architecture
which can "save games". You would write off a collection of "state of the
game" or "state of the page" variables into a text file, together with the
players name, and reload information specific to one of many players,
conjuring up the same scenery, activities and orchestrations.
Hope this challenges your spark plugs!
Perhaps this idea is worth sharing some MW Code.
best regards,
Harvey
At 09:05 AM 9/9/2003, you wrote:
>The button to page 6 should have a procedure, not just page6. Then you can
>stopall as soon as you get to page6
>
>e.g.
>
>to page-6
>page6
>stopall
>end
>
>Susan
>**************************************************************
>Susan van Gelder
>susanvg@videotron.ca
>
>_______________________________________________
>MWForum mailing list
>MWForum@lists.mathcats.com
>http://lists.mathcats.com/mailman/listinfo/mwforum
>attachments archived at:
>http://www.mathcats.com/mwforum/attachments.html
"Music is the one incorporeal entrance into the higher world of knowledge
which comprehends mankind, but mankind cannot comprehend."
Ludwig van Beethoven
--=====================_4067318==.ALT
Content-Type: text/html; charset="us-ascii"
<html>
<body>
Lara:<br>
You would want to perform a stopall before you exit the current page, and
place a few lines of "cleanup code" as well in that
page-switching procedure. Such 'clean-up' code could be used to track
information like what activity was going on in the environment you're
exiting, (what programs are running before you blugeoned everything with
a stopall), what sounds are playing, and optionally, saving the
background graphics. <br><br>
What this potentially accomplishes is that upon a button initiated return
to that page at a later time, you can attach another procedure to restore
the same environment - i.e. all activity on every turtle
"silenced" at last exit from that page. You can do this
utilizing ask "t1 [clickon]. If the command to use background music
is incorporated as part of a turtle procedure, that can also be
automated. <br><br>
This is how one begins to experiment with developing software
architecture which can "save games". You would write off a
collection of "state of the game" or "state of the
page" variables into a text file, together with the players name,
and reload information specific to one of many players, conjuring up the
same scenery, activities and orchestrations. <br><br>
Hope this challenges your spark plugs!<br>
Perhaps this idea is worth sharing some MW Code.<br><br>
best regards,<br>
Harvey<br><br>
At 09:05 AM 9/9/2003, you wrote:<br>
<blockquote type=cite class=cite cite>The button to page 6 should have a
procedure, not just page6. Then you can stopall as soon as you get to
page6<br><br>
e.g.<br><br>
to page-6<br>
page6<br>
stopall<br>
end<br><br>
Susan<br>
**************************************************************<br>
Susan van Gelder<br>
susanvg@videotron.ca<br><br>
_______________________________________________<br>
MWForum mailing list<br>
MWForum@lists.mathcats.com<br>
<a href="http://lists.mathcats.com/mailman/listinfo/mwforum" eudora="autourl">http://lists.mathcats.com/mailman/listinfo/mwforum</a><br>
attachments archived at:<br>
<a href="http://www.mathcats.com/mwforum/attachments.html" eudora="autourl">http://www.mathcats.com/mwforum/attachments.html</a></blockquote>
<x-sigsep><p></x-sigsep>
<font face="Bell MT">"Music is the one incorporeal entrance into the
higher world of knowledge which comprehends mankind, but mankind cannot
comprehend." <br>
Ludwig van Beethoven <br><br>
<br>
</font></body>
</html>
--=====================_4067318==.ALT--