Discuss Scratch

LittlePony
Scratcher
100+ posts

Need Help With Custom Block!

Alright, so in a project I'm making, you can enter a word and voice will say the word. However, I am having a bit of trouble. Should I use a custom block or use a shorter, easier blocks that aren't customized? I made a project, so look inside to see the scripts. ^^

LINK: http://scratch.mit.edu/projects/12130057/

Please help!
curiouscrab
Scratcher
500+ posts

Need Help With Custom Block!

I believe it will be easiest just to use
play sound (item (#) of [Sentence: v]) until done
so you don't need all those if blocks. Just make sure you name the sounds the same as what will be in the list.

(#)
should be the number in the list you want.

Last edited by curiouscrab (Sept. 2, 2013 21:03:47)

LittlePony
Scratcher
100+ posts

Need Help With Custom Block!

curiouscrab wrote:

I believe it will be easiest just to use
play sound (item (#) of [Sentence: v]) until done
so you don't need all those if blocks. Just make sure you name the sounds the same as what will be in the list.

(#)
should be the number in the list you want.

*facepalm* Why didn't I think of that! Geez I'm an idiot sometimes! lol Anyway, thank you so much! You are saving me a lot of time! :3
curiouscrab
Scratcher
500+ posts

Need Help With Custom Block!

LittlePony wrote:

curiouscrab wrote:

I believe it will be easiest just to use
play sound (item (#) of [Sentence: v]) until done
so you don't need all those if blocks. Just make sure you name the sounds the same as what will be in the list.

(#)
should be the number in the list you want.

*facepalm* Why didn't I think of that! Geez I'm an idiot sometimes! lol Anyway, thank you so much! You are saving me a lot of time! :3
Your Welcome!
blob8108
Scratcher
1000+ posts

Need Help With Custom Block!

@cc Assuming the sounds are in the right order, can't you do this?
play sound (#) until done

tosh · slowly becoming a grown-up adult and very confused about it

Powered by DjangoBB