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

#1 2012-10-07 05:49:40

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Help Wanted!

i to to make my game so that when the ball touches the bottom of the screen, i want it to play a sound 3 times, then make a script stamp a diffrent costume 5 times at the top of the screen, and make any existing lines drop down by 1 line.

HELP ME PLEASE AND BE BOTHERED TO HELP!


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#2 2012-10-07 08:45:38

CylonToast
Scratcher
Registered: 2011-10-06
Posts: 1000+

Re: Help Wanted!

Well, to make the ball play the sound, this is the script to use:
You might want to make a hidden sprite and put it at the bottom of the screen to com

when gf clicked
forever
if touching sprite2
repeat (3)
play sound 
As for the stamping 5 times thing, this is the script to use:
If you want this to be done immediately after the previous script, you'll have to add a broadcast script.
when I receive [X]
change y by [whatever]
repeat [5]
move [x] steps
stamp
Hope this helped  smile


https://lh3.googleusercontent.com/-Axvm8TlDHc4/Tocl0m1Z39I/AAAAAAAACAI/j32nzVU69DU/animated-peanut.gifhttp://gifsoup.com/webroot/animatedgifs/136991_o.gif

Offline

 

#3 2012-10-07 09:29:20

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Help Wanted!

CylonToast wrote:

Well, to make the ball play the sound, this is the script to use:
You might want to make a hidden sprite and put it at the bottom of the screen to com

when gf clicked
forever
if <touching [sprite2 v]?>
repeat (3)
play sound [x v]
end
end
As for the stamping 5 times thing, this is the script to use:
If you want this to be done immediately after the previous script, you'll have to add a broadcast script.
when I receive [X]
change y by [whatever]
repeat [5]
move [x] steps
stamp
end
Hope this helped  smile

Fixed.

Anyway, in your script, you had used:

repeat (3)
play sound [x v]
end
But that will squish the sounds together, so I recommend using:

repeat (3)
play sound [x v] until done
end

Last edited by ErnieParke (2012-10-07 09:33:28)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer