How do you permanently change the color of just one block that is in it's desired section.
Example:
To make a certain block in the looks section be colored green. And when you take the block out of it's desired section, it looks green.
Mockup:
I can manage to do this, but whenever I do, when I change the category, then change it back, it's normal. How to I make it permanent?
Offline
I don't think you can...but you can change the color of the whole category....
Offline
ScratchReallyROCKS wrote:
I don't think you can...but you can change the color of the whole category....
I know how to do that, I just wish I could do it with certain blocks.
Offline
Save the image?
Offline
markyparky56 wrote:
Save the image?
That doesn't work because when you save the image it re-initializes everything so the blocks are changed back to their category color..
Last edited by ScratchReallyROCKS (2010-07-03 08:55:10)
Offline
ScratchReallyROCKS wrote:
markyparky56 wrote:
Save the image?
That doesn't work.
Why do you want to do it anyway?
Offline
markyparky56 wrote:
ScratchReallyROCKS wrote:
markyparky56 wrote:
Save the image?
That doesn't work.
Why do you want to do it anyway?
I'm trying to put all of the obsolete blocks back in they're original places, and to recognize that they are obsolete, I want them to be separate colors. It probably won't be green, but I know how to choose different colors.
Offline
henley wrote:
markyparky56 wrote:
ScratchReallyROCKS wrote:
That doesn't work.Why do you want to do it anyway?
I'm trying to put all of the obsolete blocks back in they're original places, and to recognize that they are obsolete, I want them to be separate colors. It probably won't be green, but I know how to choose different colors.
Hmmm... Imt hinking that it involves going into scratchFrameMorph... But im not sure... I'm not a very good hacker.
Offline
awesome12 wrote:
How do you make a block change color?
Thats the point in this thread.
Offline
This is pretty easy. Go to Scratch-Blocks - CommandBlockMorph - private - addLabel.
At the bottom, where you see
(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]]
change it to
(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]].
(commandSpec = 'next costume') ifTrue: [self color: Color green].
Now save the image, and if you do, when you open Scratch back up, you'll see that the 'next costume' block is green! You should be able to do this for any amount of blocks.
Offline
rubiks_cube_guy238 wrote:
This is pretty easy. Go to Scratch-Blocks - CommandBlockMorph - private - addLabel.
At the bottom, where you see(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]]change it to
(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]].
(commandSpec = 'next costume') ifTrue: [self color: Color green].Now save the image, and if you do, when you open Scratch back up, you'll see that the 'next costume' block is green! You should be able to do this for any amount of blocks.
That's cool!
Offline
rubiks_cube_guy238 wrote:
This is pretty easy. Go to Scratch-Blocks - CommandBlockMorph - private - addLabel.
At the bottom, where you see(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]]change it to
(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]].
(commandSpec = 'next costume') ifTrue: [self color: Color green].Now save the image, and if you do, when you open Scratch back up, you'll see that the 'next costume' block is green! You should be able to do this for any amount of blocks.
Wow! That is amazing! It works! Well, there is no need for this topic anymore.
Offline
henley wrote:
rubiks_cube_guy238 wrote:
This is pretty easy. Go to Scratch-Blocks - CommandBlockMorph - private - addLabel.
At the bottom, where you see(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]]change it to
(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]].
(commandSpec = 'next costume') ifTrue: [self color: Color green].Now save the image, and if you do, when you open Scratch back up, you'll see that the 'next costume' block is green! You should be able to do this for any amount of blocks.
Wow! That is amazing! It works! Well, there is no need for this topic anymore.
Except for referece.
Offline
markyparky56 wrote:
henley wrote:
rubiks_cube_guy238 wrote:
This is pretty easy. Go to Scratch-Blocks - CommandBlockMorph - private - addLabel.
At the bottom, where you see(t4 isKindOf: ChoiceArgMorph)
| (t4 isKindOf: SpriteArgMorph) ifTrue: [self addMorphBack: (Morph new color: Color transparent;
extent: 2 @ 5)]]change it to
Now save the image, and if you do, when you open Scratch back up, you'll see that the 'next costume' block is green! You should be able to do this for any amount of blocks.Wow! That is amazing! It works! Well, there is no need for this topic anymore.
Except for referece.
yeah, keep it for reference.
Offline
I'm guessing this is how Jens made the [script variables ((a)) < >] block grey.
Last edited by jackrulez (2010-07-13 09:26:15)
Offline
Uh, if your title includes things that you enter, (secs, names, etc.) do you need to include the %n and stuff?

Offline
JeanTheFox wrote:
Uh, if your title includes things that you enter, (secs, names, etc.) do you need to include the %n and stuff?
Yes.
Offline