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

#1 2013-01-06 01:35:33

Jaydeeizsik
New Scratcher
Registered: 2013-01-06
Posts: 5

Converse with sprites

Hi all. I'm new to this, so forgive me if my post seems sloppy.

Anyway, I found a game entitled GuessingGame in the Examples folder in Scratch. For those who don't know what it is, it's a game involving a baby that asks what my name is and asks what animal I'd like the baby to turn into. I was impressed when it said my name back to me, but not so much when I asked it to turn into an animal, because no matter what I typed, it always turned into a giraffe, and I don't even like giraffes that much. : \

So, I was wandering if there was a way I could make a game similar to it, only whatever the player types into the answer thing, it could change into it. I know about making different sprites for it and stuff just to clear that up.

Also, is there a way I can make the character answer questions based on what's in the questions, whether it be a particular word or whatever.

I'd appreciate the help guys.  smile

Offline

 

#2 2013-01-06 06:15:16

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Converse with sprites

Jaydeeizsik wrote:

Hi all. I'm new to this, so forgive me if my post seems sloppy.

Anyway, I found a game entitled GuessingGame in the Examples folder in Scratch. For those who don't know what it is, it's a game involving a baby that asks what my name is and asks what animal I'd like the baby to turn into. I was impressed when it said my name back to me, but not so much when I asked it to turn into an animal, because no matter what I typed, it always turned into a giraffe, and I don't even like giraffes that much. : \

So, I was wandering if there was a way I could make a game similar to it, only whatever the player types into the answer thing, it could change into it. I know about making different sprites for it and stuff just to clear that up.

Also, is there a way I can make the character answer questions based on what's in the questions, whether it be a particular word or whatever.

I'd appreciate the help guys.  smile

It sounds quite simple, the hardest thing being getting all the costumes, here's some psudocode:

when gf clicked
forever
ask [what is your name?] and wait
say (answer)
ask [what animal] and wait
switch to costume (answer)
all your costumes need to be named with the appropriate animal's name.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2013-01-09 06:55:29

ethwok
Scratcher
Registered: 2012-09-10
Posts: 100+

Re: Converse with sprites

Also, you must make a list of all the costume names, so that you can make a script that says if answer does not equal any items on the list, your baby says "Sorry, I can't turn into that animal"


http://displaypicks.com/wp-content/uploads/2013/01/Animals-12.jpg
I AM ETHWOK

Offline

 

#4 2013-01-10 01:55:19

Aditya007
Scratcher
Registered: 2012-11-27
Posts: 63

Re: Converse with sprites

U can have some costumes named as that animals
Ask animal and then change into that costume, no need to have different sprites and then make a list of animals u have and then if its not form then tell ur sprite to say "I cant do that"

Quiet Easy


Wolf_OS!!!  smile  Check My Stuff  tongue  Need Help?  Currently, I am http://blocks.scratchr.org/API.php?user=Aditya007&action=onlineStatus&type=square
http://i49.tinypic.com/15gy1j6.jpg

Offline

 

#5 2013-01-13 16:19:48

cool_dude_2
Scratcher
Registered: 2012-12-05
Posts: 82

Re: Converse with sprites

Jaydeeizsik wrote:

Hi all. I'm new to this, so forgive me if my post seems sloppy.

Anyway, I found a game entitled GuessingGame in the Examples folder in Scratch. For those who don't know what it is, it's a game involving a baby that asks what my name is and asks what animal I'd like the baby to turn into. I was impressed when it said my name back to me, but not so much when I asked it to turn into an animal, because no matter what I typed, it always turned into a giraffe, and I don't even like giraffes that much. : \

So, I was wandering if there was a way I could make a game similar to it, only whatever the player types into the answer thing, it could change into it. I know about making different sprites for it and stuff just to clear that up.

Also, is there a way I can make the character answer questions based on what's in the questions, whether it be a particular word or whatever.

I'd appreciate the help guys.  smile

its scripts are simple so i got it to say oops! i didnt turn into a giraffe! i turned into a giraffe!


http://blocks.scratchr.org/API.php?user=cool_dude_2&action=projects&type=newest&return=image&num=1i am http://blocks.scratchr.org/API.php?user=cool_dude_2&action=onlineStatus&type=text

Offline

 

#6 2013-01-13 22:28:58

ianthestuntman
Scratcher
Registered: 2013-01-02
Posts: 100+

Re: Converse with sprites

when gf clicked
ask [What is your name?] for 1 secs
say [hello] for 1 secs
say <answer> for 1 secs

Offline

 

#7 2013-01-23 03:16:25

Jaydeeizsik
New Scratcher
Registered: 2013-01-06
Posts: 5

Re: Converse with sprites

Thanks to everyone who posted, your help is greatly appreciated (: Couldn't have done it without your assistance.

Offline

 

#8 2013-01-23 03:24:43

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: Converse with sprites

Aww I'm too late...

Well, this is how I'd have done it, anyway.

when gf clicked
ask [What animal should I turn into?] and wait
if <[Animals v] contains (answer)>
switch to costume (answer)
else
say [I can't do that.]
end
stop script


http://i50.tinypic.com/ded8m.png

Offline

 

Board footer