I wanted to use the background number as a variable, but the background number block (round and in the looks category), is only available when you click on the stage. I dragged it onto the sprite image I wanted to put it into to make it appear there, and then inserted it into the script using the following block: <( <background<4> )>. However, when I tried to run the program, the background block turned red and the program didn't work right. I'm wondering if the program has some objection to using the background block in sprites, and if so, how I can overcome that.
Offline
croyscratch wrote:
I wanted to use the background number as a variable, but the background number block (round and in the looks category), is only available when you click on the stage. I dragged it onto the sprite image I wanted to put it into to make it appear there, and then inserted it into the script using the following block: <( <background<4> )>. However, when I tried to run the program, the background block turned red and the program didn't work right. I'm wondering if the program has some objection to using the background block in sprites, and if so, how I can overcome that.
Use the 
And set it to
Hope that helps.
Offline
You can't use the (costume #) block in the Stage and the (background #) block in sprites. If you want to use those blocks there, do what markyparky56 said.
Last edited by Jonathanpb (2010-07-02 01:36:23)
Offline
Jonathanpb wrote:
You can't use the (costume #) block in the Stage and the (background #) block in sprites. If you want to use those blocks there, do what markyparky56 said.
![]()
Thank you.
Offline
markyparky56 wrote:
croyscratch wrote:
I wanted to use the background number as a variable, but the background number block (round and in the looks category), is only available when you click on the stage. I dragged it onto the sprite image I wanted to put it into to make it appear there, and then inserted it into the script using the following block: <( <background<4> )>. However, when I tried to run the program, the background block turned red and the program didn't work right. I'm wondering if the program has some objection to using the background block in sprites, and if so, how I can overcome that.
Use the
http://img686.imageshack.us/img686/1963/sensor.gif
And set it to
http://img686.imageshack.us/img686/363/bgsensor.gif
Hope that helps.
These blocks are massively underused and underappreciated.
Offline
We Will Help To Appreciate Them. Simply Add Them Into Your Projects And Others Will Soon Know
Offline
Subh wrote:
We Will Help To Appreciate Them. Simply Add Them Into Your Projects And Others Will Soon Know
Even if they're not needed? But yes, they are underused.
Offline