Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
make the cartoon talk?
Old
carolinason
Guest
 
Status:
Posts: n/a
Default make the cartoon talk? - 03-24-2011, 08:07 PM

how do i make a cartoon character say a parameter or variable. i am assuming the parameter can be passed in and out of methods and a variable is local to a single method.

i am writing, as part of an assignment that will use loops, but to just get thing up and going i am making a simple program to calculate averages. set number of values and each value is input by the user.

i have a method ask for numbers and calculate the average. i then make the cartoon character say that average in my first method.

HOW do i make the kid say the average. it's a parameter called average!

two methods. world.my first method and world.math. average is a parameter in world.math.
   
Reply With Quote
Old
carolinason
Guest
 
Status:
Posts: n/a
Default 03-24-2011, 08:13 PM

i'm using the character's say method. i try and add to the string, but i don;t see the parameter
   
Reply With Quote
Old
carolinason
Guest
 
Status:
Posts: n/a
Default 03-24-2011, 09:54 PM

made it work by containing it in a single method.

calculate average set it to a variable. then set (average) value to string. say string.

that only took 3 hours - now i have to do the real work!
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 03-30-2011, 10:45 AM

I made a program called JA Command System. It works with the user input and it displays whatever you typed. You can look at it and look at the code and then try to reproduce the code into your project but instead of making it display what you type in Print or 3d Text, you can do with with Text Bubble. You can look at my project here... Click_Here


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.