[squeakland] text conversation in etoys
billkerr at gmail.com
Tue Nov 17 23:08:33 EST 2009
On Wed, Nov 18, 2009 at 5:03 AM, Yoshiki Ohshima <yoshiki at vpri.org> wrote:
> Hi, Bill,
> > I'm trying to setup a text based dialogue b/w 2 objects
> > I dragged out two Text objects from Supplies, named them first and second
> > The best I can do is write a series of scripts for the Text objects, one
> script for each part of the conversation
> > Then I made a clock with a time variable and setting the ticker to one
> per second
> > Then write a controller script, using world
> > Test: clock's time > 2
> > Yes: first do script1
> > Test: clock's time > 4
> > Yes: second do script1
> > Test: clock's time > 6
> > Yes: first do script 2
> > Also made a reset script, using world
> > Is there a better way?
> Another way is to put each part of conversation in a Holder (as
> TextMorphs) and assign the phrase at the cursor to "first" and
> "second". See
> (and at the showcase once it appears)
> In this way, you don't have to edit the script at all when you want to
> modify the conversation.
thanks Yoshiki, that's easier to manage
the problem is that I can't see any way to slow the time down below 1 tick
that's faster than a conversation ought to go!
> -- Yoshiki
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the squeakland