PRB - More Programming (Lesson)

More Programming

Creating Conversation

Check out the various objects and placement of them. It is now time to learn how to create some code so that the objects will speak to each other.  

Watch the basic video below to learn how to make your object speak. Create the scene and conversation with the video.

More Details

Now watch the following video to add to the conversation of your object. Create the project with following along, studying the steps to know how to use more detail in your project.

Basic Steps to the Process

Below are the basics steps to do this process, solve the problem of motion and speech, the pseudocode at a high level.

1  Add an object to your scene.  2  Change the objects dress, hair style, etc. as you desire.  3  Give the object a unique name.  4  Repeat steps 1-3 for at least one more object.  5  Click on the edit code button in the right corner of the scene setup.  6  Now click on MyFirstMethod. The program directions begin here.  7  Click on the object that you wish to speak first. Note the procedure code that is opened with the structure "this.".  The this.something indicates that the code is to be written for the object you clicked on, this object.  8  Drag the say text box into the do in order command.  9  Click on the down arrows and customize the saying as needed.  10  Continue clicking on the drop down arrows as they appear to provide timing and detail to the speak cloud.  11  Check your work by clicking on run. Adjust as necessary.  12  Repeat steps 7 - 11 for all objects speaking, creating a short conversation.  13  Now you are ready to try other items that you see in the procedures area of code for your object.    14  Remember to test as you go. This is the best method to have a program running and working in a timely manner. If something does not work, you know exactly the last item entered, so work with that code to correct it to what you would like to have happen.

VIDEOS SOURCED FROM ALICE.ORG Links to an external site. AND USED WITH PERMISSION