Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you make spirites talk pig latin????
- EYzhou
-
16 posts
How do you make spirites talk pig latin????
I cant make my spirite talk pig latin! Plz help!
- deck26
-
1000+ posts
How do you make spirites talk pig latin????
I think you need to give more info if you want help. Do you mean talking with sound or using ‘say’ for example. I suggest with a few examples of what you want it to say.
- CoolGuyBug
-
100+ posts
How do you make spirites talk pig latin????
Try this:
OR, if you want to make a translator thing, you can do something like this:
OR, if you want to make a translator thing, you can do something like this:
Last edited by CoolGuyBug (May 14, 2016 02:03:19)
- VicTwenty
-
83 posts
How do you make spirites talk pig latin????
That's simpler than I thought it would be CoolGuyBug!
- Just_Ciaran
-
100+ posts
How do you make spirites talk pig latin????
I know you're just trying to help (or possibly just trying to get scratcher status), but don't just make posts unless you have something to say that will help another person. The main problem is it bumps up topics that have already been resolved and in turn means that other topics don't get answered. That's simpler than I thought it would be CoolGuyBug!
Last edited by Just_Ciaran (May 14, 2016 03:36:28)
- EYzhou
-
16 posts
How do you make spirites talk pig latin????
I think you need to give more info if you want help. Do you mean talking with sound or using ‘say’ for example. I suggest with a few examples of what you want it to say.
- Cyoce
-
500+ posts
How do you make spirites talk pig latin????
First post in quite some time.
Try this. It'll work for any length string; this means they can't give you a word that's too long!
Alternatively, you can just copy what I have here. Ask if you have questions!
Basically, this sets up a variable pig latin. It will add each letter but the first to pig latin, then add the first letter and “ay” to the end. How it loops through the input text is checking if the current letter is equal to empty; if you ask for a letter that is too big (for example, asking for letter 6 of “hello”, it will give you back an empty piece of text). We have this stored in the variable EMPTY for convenience.
Try this. It'll work for any length string; this means they can't give you a word that's too long!
Alternatively, you can just copy what I have here. Ask if you have questions!
Basically, this sets up a variable pig latin. It will add each letter but the first to pig latin, then add the first letter and “ay” to the end. How it loops through the input text is checking if the current letter is equal to empty; if you ask for a letter that is too big (for example, asking for letter 6 of “hello”, it will give you back an empty piece of text). We have this stored in the variable EMPTY for convenience.
Last edited by Cyoce (May 15, 2016 21:37:05)
- deck26
-
1000+ posts
How do you make spirites talk pig latin????
I should probably have googled ‘pig latin’ before my earlier response! First post in quite some time.
Try this. It'll work for any length string; this means they can't give you a word that's too long!
Alternatively, you can just copy what I have here. Ask if you have questions!
Basically, this sets up a variable pig latin. It will add each letter but the first to pig latin, then add the first letter and “ay” to the end. How it loops through the input text is checking if the current letter is equal to empty; if you ask for a letter that is too big (for example, asking for letter 6 of “hello”, it will give you back an empty piece of text). We have this stored in the variable EMPTY for convenience.
@Cyoce's solution is fine but just use
If you're using input consisting of more than one word you'll need to look for separator characters - eg space, comma or whatever.
- Cyoce
-
500+ posts
How do you make spirites talk pig latin????
deck26, you're right, I forgot about the length of () block for strings. Added to my answer.
- Discussion Forums
- » Help with Scripts
-
» How do you make spirites talk pig latin????