This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-10 22:05:44

Captain26618
Scratcher
Registered: 2009-03-07
Posts: 1

Please, I need help with voices.

Hello, I post today in need of knowledge on how to create a list that allows random talking for say, a game character. For example, in an RTS video game, such as Command and Conquer when you select a unit they would say a random question like
"Yes sir?" or "Yeah, what is it?" or when you give them a command they would say something like "Moving there now." or "Yes sir!" So what I'm asking is how do I create a list for voices or sounds?

Offline

 

#2 2009-04-10 22:09:36

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Please, I need help with voices.

Sorry but what you are asking is immpossible for scratch.  sad


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#3 2009-04-10 23:28:14

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Please, I need help with voices.

You could record the voice-overs yourself, then save them in a sprite and make it play a random one of the possible things it could say when you do that action.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2009-04-11 07:39:19

Mike_W
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: Please, I need help with voices.

Captain26618 wrote:

So what I'm asking is how do I create a list for voices or sounds?

So you would have to do a list of numbers or strings - that you used as a trigger for voices, possibly using broadcasts to trigger a unit to look to see what they need to say.

The actual voices would be handled by a long list of if's

Complicated (which with scratch can mean slower especially on the web) impossible to do easily, but the result might be reachable (I have never tried it)

Offline

 

#5 2009-04-11 09:12:44

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Please, I need help with voices.

http://scratch.mit.edu/projects/Stickman704/485417

download and look at the script. hope that helps.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#6 2009-04-11 11:28:05

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Please, I need help with voices.

You can simply use a (pick random [num]) block for that.

<when [whatever happens]>

<play sound[ <pick random( 1 )to( number of soundtracks ]and waits>


Same for "say" blocks.


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#7 2009-04-12 09:43:08

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Please, I need help with voices.

forgot about that. do my red nuptunes way then as mine has more lagg.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

Board footer