I have a project, http://scratch.mit.edu/projects/Abigail1101/1969787, that has a bit of a complication in the script. I had to copy 'background no' from the stage to a sprite. It was vital in the project. However, when I tested it a red line appeared around it. Help!
Offline
How should I fix it?
Offline
Abigail1101 wrote:
I have a project, http://scratch.mit.edu/projects/Abigail1101/1969787, that has a bit of a complication in the script. I had to copy 'background no' from the stage to a sprite. It was vital in the project. However, when I tested it a red line appeared around it. Help!
Hey abigail, a red line around the scrip mean that there's some kind or error in the script. I have a feeling that the error here is the block associated with the costumes.
You see, the stage uses the block for the stage's costumes.
However, a sprite uses the block for the sprite costumes.
When you moved the script from the stage to a sprite, the sprite could not read the block so it has a red line around the script.
I took a look at the project, the error is in the "Grouch" sprite, yes? To fix it, just create a global variable that will copy the number of the stage background costume something like:
forever
set (variable) to (background #)
and then use your new variable in the sprite's scripts instead of the (background #) block.
Last edited by cheddargirl (2011-08-22 18:26:21)
Offline
Thanks!
Offline