Offray,<br><br>You can use <br><br>aMorph setBalloonText: 'some text'<br><br>to change the text displayed when you mouse over but the attached changeset probably does something closer to what you want. I loaded it into a BotsInc image and it seemed to work fine. From the comment in the changeset:
<br><br>This changeset provides a somewhat generalized means of have a morph communicate. Right now the default(and only) implementation uses BalloonMorphs but the code is setup to use any object which understands #string:for:. Text-To-Speech should be pretty easy to implement. These methods provide options not available with showBalloon: which keeps the balloon onscreen until a mouse event occurs. Also showBalloon: clears any existing balloons so two morphs can't display balloons simultaneously with showBalloon:(see example below). No unit tests are provided but the following lines exercise the core capabilities.
<br><br>e _ EllipseMorph new openInWorld.<br>e sayHelp<br>e say: 'something'<br>e say: 'something' duration: 7<br>e after: 2 say: 'something' <br>e after: 2 say: 'something' duration: 7<br>
<br><br>At some point the balloon morph could be returned so that it's contents and the duration it stays on screen could be tested. <br><br>b_ RectangleMorph new openInWorld<br>b showBalloon: 'testing'.""is never seen""
<br>e showBalloon: 'me too'<br><br>These speech balloons can be seen in action in videos <a href="http://www.griotvision.com/background/gStickPresentationARR.mov">here</a> and <a href="http://www.bopspace.com/how-to/space-hosting/">
here</a>(in Wonderland). <br><br>HTH,<br><br>Laurence<br><br><div><span class="gmail_quote">On 10/10/07, <b class="gmail_sendername">Offray Vladimir Luna Cardenas</b> <<a href="mailto:offray.luna@javeriana.edu.co">offray.luna@javeriana.edu.co
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi Karl,<br><br>
karl wrote:<br>> BotsInc is maybe not the best in environment to do this experiment as it<br>> has lots of safeguards against the full Squeak IDE.<br>><br>> I have not found any real support for the thing you want to do in either
<br>> Squeakland or OLPC image.<br>> If you want a quick solution you could try Scratch<br>> (<a href="http://scratch.mit.edu/">http://scratch.mit.edu/</a>) which has pretty good support for this kind of<br>> animation and talk bubbles.
<br><br><br>Thanks for your quick answers. We have tried Scratch, but the<br>programming options of a drag & drop syntax prevent us for using a lot<br>of options of Squeak. This syntax is cool for beginning but at some
<br>point you reach the expressive barrier and you need a more flexible way<br>(that already happen with etoys last semester and with Scratch at the<br>beginning of this one). We have already accessed to the methods browser
<br>and we're even changing some of the default behavior of Bots Inc, for<br>example the help bubbles of the robots (for the moment we're working<br>only on translation), so I will keep trying with Bots Inc., so I will
<br>rephrase my question:<br><br>How can I change the default bubble message of an object (particularly<br>a Bot) in a dynamic way... I mean without going every time to the<br>methods browser ?<br><br>Sorry for being so stubborn... I learn a lot of the Squeak community all
<br>the time, but I think that dramabotics is not a so crazy idea If I can<br>learn how to teach to speak and dress to the robots (actors).<br><br>Cheers,<br><br>Offray<br><br>><br>> Karl<br>><br>> Offray Vladimir Luna Cardenas wrote:
<br>> Hi All,<br>><br>><br>> This morning we talk in the etoys list about passing from etoys to<br>> Smalltalk using Bots Inc as a bridge and I proposed a project that I<br>> called "Dramabotics", the idea is to use Bots Inc for storytelling on
<br>> local folklore. In this way, once the basic topics on etoys and Bots Inc<br>> were covered, we narrate some story where the actors are robots and<br>> etoys, making a bridge between programming and local folklore.
<br>><br>> At this moment my class and me are starting to explore the Bots Inc<br>> environment for this and we have two questions (I always ask myself if<br>> this is the proper place to ask, so point me another place if I'm wrong):
<br>><br>> * Can the loadImage and lookLike messages of BotsInc support graphics<br>> made in other graphical tools, like Inkscape, provided that they are in<br>> the proper format (jpeg, png, etc) ?<br>><br>
> * I have seen the method Pica-Bot>>Bot>>private<br>> morphic>>balloonFeedback and I'm trying to get different messages from<br>> the robot, for example:<br>><br>> | probar |<br>> probar := Bot new.
<br>> probar setBallonText: ('Rin Rin renacuajo...') withCRs.<br>><br>> but this doesn't work, only if I change the message in the System<br>> Browser I get the desired behavior but I want a method for making the
<br>> robots say different things.<br>><br>> Thanks for your help. The more I use Squeak, the more I'm convinced of<br>> their powerful embedded ideas and its impact on education.<br>><br>> Cheers,<br>
><br>> Offray<br>>><br>_______________________________________________<br>Squeakland mailing list<br><a href="mailto:Squeakland@squeakland.org">Squeakland@squeakland.org</a><br><a href="http://squeakland.org/mailman/listinfo/squeakland">
http://squeakland.org/mailman/listinfo/squeakland</a><br>>><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v2.0.1 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org
</a><br><br>iD8DBQFHDVzPpzl8tTvDAE8RAto2AJ4+5EnINNWVytFFwoZ1pxPYHicx5wCg2TQV<br>D+DPwh3PRdoD5qRkwvWrk+c=<br>=efqz<br>-----END PGP SIGNATURE-----<br><br>_______________________________________________<br>Squeakland mailing list
<br><a href="mailto:Squeakland@squeakland.org">Squeakland@squeakland.org</a><br><a href="http://squeakland.org/mailman/listinfo/squeakland">http://squeakland.org/mailman/listinfo/squeakland</a><br></blockquote></div><br>