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

#1 2009-03-08 15:22:12

stepturn
Scratcher
Registered: 2009-03-08
Posts: 1

help me, Please! 2nd click

Is there a way to make a sprite say something different everytime you click it? I want it to say "Hello" the first time then some other sentence the next and so on for 3 or 4 clicks. is that possible??

Offline

 

#2 2009-03-08 15:37:38

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

Re: help me, Please! 2nd click

yes u can do like make a variable called click and have the following script

<when green flag clicked>
<set{ click }to( 1

<when[sprite1  ]clicked>
<if><(<{click  }>  <=> 1 )>
<say[hello  ]for( 2 )secs>
<if><(<{click  }>  <=> 2 )>
<say[ Wassup? ]for( 2 )secs>

and then do that however many times u want him to say something just changing wat he says and the number click ='s
and then at the end of the script put

change click by 1


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-03-08 23:45:04

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: help me, Please! 2nd click

<when green flag clicked>
<wait until> mouse down
<say[ hello
<wait until> mouse down
<say[ something else
<wait until> mouse down
<say[ etc...
<wait until> mouse down
<say[ you get the point

Last edited by yambanshee (2009-03-08 23:45:27)

Offline

 

#4 2009-03-15 09:28:56

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: help me, Please! 2nd click

yambansee wrote:

mouse down
   hello
   mouse down
   something else
   mouse down
   etc...
   mouse down
   you get the point

Actually it should be
[blocks]<when green flag clicked>
<wait until><mouse down?>
<say[ whatever you want it to ]for( ? )secs>
<wait until><<  <not>  >><mouse down?>
<wait until><mouse down?>
<say[ whatever you want it to ]for( ? )secs>
<wait until><<  <not>  >><mouse down?>
<wait until><mouse down?>
<say[ whatever you want it to ]for( ? )secs>
<wait until><<  <not>  >><mouse down?>[/blocks] and so on

BE SURE TO NOTICE THE NOTS!

Last edited by videogame9 (2009-03-15 09:31:39)


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#5 2009-03-15 13:58:31

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

Re: help me, Please! 2nd click

Oh yah I forgot about that way. I was doing the more complicated way


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

 

Board footer