What's Part 4 all about?
In Part 4 we'll show you how to animate your bot so that he'll:
- move his mouth when speaking
- display his answer in a "speech bubble"
- move to different places by using controls in the right hand frames page
- give you a message about his new location when you move close by
Click here if you'd like to see an example running on our site.
Step 1: Setting up the files
Firstly you'll need to download the files
here, and use e.g. WinZip to unzip them into a folder. Now copy all these files into the same folder on your web site (e.g.called bot).
If you're using the same folder as you used in Parts 1-3, then you'll need to overwrite a few of the earlier files which have the same names as these new ones.
NB You don't have to upload the files in your cgi-bin again (
pandorabots.cgi and call) as these stay the same as in
Part 2.
Step 2: Test it out!
Type the address of your new page in your web browser e.g.
www.yoursite.com/bot/
where
yoursite.com is your site's address and
bot is the folder you saved the main files in.
When the page has loaded, try asking the bot a question by typing it in starting with
B: e.g.
B: How are you? You should get an answer in the chat line starting with
Bot Says: e.g.
Bot Says: Hi.
You should also see the bot's mouth moving
approximately in sync with the words, and the answer will be displayed in a "speech bubble" above his head.
Click the
Position buttons on the right hand side of the page. Each time you do he will give you a brief message and then move to the position. If you follow him and stand near him, he will also give you a comment about the location (this tends to be "blah de blah" but you can change this later!).