[Thread Prev] [Thread Next]
Thanks Harvey! Your thinking is way ahead of mine but I will try to work
through what you've written.
----- Original Message -----
From: Harvey Bornfield
To: mwforum@xxxxxxxxxxxxxxxxxx
Sent: Wednesday, September 10, 2003 3:53 AM
Subject: Re: [MWForum]Stopall
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@xxxxxxxxxxxx
_______________________________________________
MWForum mailing list
MWForum@xxxxxxxxxxxxxxxxxx
http://mia.openworldlearning.org/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
|
Thanks Harvey! Your thinking is way ahead of mine but I
will
try to work through what you've written.
----- Original Message -----
Sent: Wednesday, September 10, 2003
3:53
AM
Subject: Re: [MWForum]Stopall
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@xxxxxxxxxxxx
_______________________________________________ MWForum
mailing list MWForum@xxxxxxxxxxxxxxxxxx http://mia.openworldlearning.org/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
|
Previous by thread:
Stopall
Next by thread:
rotating shapes
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|