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

#1 2012-03-07 13:34:48

darksky0001
Scratcher
Registered: 2012-02-26
Posts: 15

Red Line On My Sound!!! Heeeellllllllppppppp!!!!!!!!

Plz help me...
I downloaded music for my project, then uploaded it to my scratch project's background, and went to the background's scripts. I dragged

when green flag clicked
forever
   play sound [my sound is here] until done
   turn cw (15) degrees
   turn cw (15) degrees
   end
end
but there is a red line around it!! Why is that??? I REALLY want that music!


Clicky: http://scratch.mit.edu/projects/darksky0001/2517159

Offline

 

#2 2012-03-07 13:44:55

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Red Line On My Sound!!! Heeeellllllllppppppp!!!!!!!!

A red line around the scripts appear when something in the block stack can't be read. In your case, the background/stage can't really move, so it can't read the script properly whenever it sees the block

 turn right (15) degrees 
.

Just remove those blocks and the script should run fine.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2012-03-07 14:58:06

MightyMat
New Scratcher
Registered: 2012-02-10
Posts: 8

Re: Red Line On My Sound!!! Heeeellllllllppppppp!!!!!!!!

cheddargirl wrote:

A red line around the scripts appear when something in the block stack can't be read. In your case, the background/stage can't really move, so it can't read the script properly whenever it sees the block

 turn right (15) degrees 
.

Just remove those blocks and the script should run fine.  smile

I agree, if you want a sprite to turn put this in your sprite:

when gf clicked
forever
turn [15] degrees
turn [15] degrees
end
and this in your background:

when gf clicked
forever
play sound [sound here v] until done
Also, why do you tell it to turn 15 degrees twice,
turn [30] degrees
does the same thing.

Offline

 

#4 2012-03-07 15:11:41

darksky0001
Scratcher
Registered: 2012-02-26
Posts: 15

Re: Red Line On My Sound!!! Heeeellllllllppppppp!!!!!!!!

Plz help me...
I downloaded music for my project, then uploaded it to my scratch project's background, and went to the background's scripts. I dragged

when green flag clicked
forever
   play sound [my sound here] until done
   end
end


Clicky: http://scratch.mit.edu/projects/darksky0001/2517159

Offline

 

#5 2012-03-07 15:16:52

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Red Line On My Sound!!! Heeeellllllllppppppp!!!!!!!!

Each sprite has it own sounds in the sound tab. You'll need to make sure that the background contains the sound, too.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#6 2012-03-07 15:36:24

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Red Line On My Sound!!! Heeeellllllllppppppp!!!!!!!!

isn't this a duplicate?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

Board footer