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?
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
http://dev.laptop.org/~yoshiki/etoys/Conversation.002.pr
(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.
-- Yoshiki
On Wed, Nov 18, 2009 at 5:03 AM, Yoshiki Ohshima yoshiki@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
http://dev.laptop.org/~yoshiki/etoys/Conversation.002.pr
(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 per second that's faster than a conversation ought to go!
-- Yoshiki
On Wed, Nov 18, 2009 at 1:08 PM, Bill Kerr billkerr@gmail.com wrote:
On Wed, Nov 18, 2009 at 5:03 AM, Yoshiki Ohshima yoshiki@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
http://dev.laptop.org/~yoshiki/etoys/Conversation.002.pr
(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 per second that's faster than a conversation ought to go!
Mouse down on Clock icon of scriptor and select "other" from "Ticks" menu, then you could set "Number of ticks per second" to <1 , say 0.5.
-- Yoshiki
squeakland mailing list squeakland@squeakland.org http://lists.squeakland.org/mailman/listinfo/squeakland
On Wed, Nov 18, 2009 at 2:47 PM, Korakurider korakurider@gmail.com wrote:
On Wed, Nov 18, 2009 at 1:08 PM, Bill Kerr billkerr@gmail.com wrote:
On Wed, Nov 18, 2009 at 5:03 AM, Yoshiki Ohshima yoshiki@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
http://dev.laptop.org/~yoshiki/etoys/Conversation.002.pr
(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
per second that's faster than a conversation ought to go!
Mouse down on Clock icon of scriptor and select "other" from "Ticks"
menu, then you could set "Number of ticks per second" to <1 , say 0.5.
thanks! I did actually try that but only tried .1 and not 0.1 if i don't put the zero there then there is an error message
At Wed, 18 Nov 2009 15:42:52 +1030, Bill Kerr wrote:
Mouse down on Clock icon of scriptor and select "other" from "Ticks" menu, then you could set "Number of ticks per second" to <1 , say 0.5.
thanks! I did actually try that but only tried .1 and not 0.1 if i don't put the zero there then there is an error message
That could be considered a bug.
Alternatively, you can say:
Holder's cursor increase by 0.1
There, you can type ".1" and it accepts it to mean "0.1".
The tick rate is not modifiable from Etoys, but the argument for "increase by" is if you use a variable. In this way, you can have a slider for example to control the speed of conversation (or it can even go backwards).
-- Yoshiki
squeakland@lists.squeakfoundation.org