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

#1 2010-07-02 16:25:44

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

How do you permanently change the color of just one block

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:

http://i47.tinypic.com/20qxrug.png

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?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#2 2010-07-02 16:31:21

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How do you permanently change the color of just one block

I don't think you can...but you can change the color of the whole category....


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-07-02 16:37:36

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How do you permanently change the color of just one block

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.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2010-07-02 16:38:01

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How do you permanently change the color of just one block

Save the image?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#5 2010-07-02 16:40:31

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How do you permanently change the color of just one block

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)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#6 2010-07-02 16:45:01

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How do you permanently change the color of just one block

ScratchReallyROCKS wrote:

markyparky56 wrote:

Save the image?

That doesn't work.

Why do you want to do it anyway?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#7 2010-07-03 08:47:15

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How do you permanently change the color of just one block

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.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#8 2010-07-03 13:05:01

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How do you permanently change the color of just one block

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.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#9 2010-07-03 14:45:06

awesome12
Scratcher
Registered: 2010-04-19
Posts: 12

Re: How do you permanently change the color of just one block

How do you make a block change color?


BlueFire... the best arena shooting game since "bubble tanks".

Offline

 

#10 2010-07-03 14:50:59

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How do you permanently change the color of just one block

awesome12 wrote:

How do you make a block change color?

Thats the point in this thread.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#11 2010-07-03 20:50:32

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: How do you permanently change the color of just one block

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.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#12 2010-07-03 22:31:10

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How do you permanently change the color of just one block

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!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#13 2010-07-04 11:09:31

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How do you permanently change the color of just one block

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.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#14 2010-07-04 11:42:02

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: How do you permanently change the color of just one block

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.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#15 2010-07-04 17:19:37

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How do you permanently change the color of just one block

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.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#16 2010-07-13 09:26:06

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: How do you permanently change the color of just one block

I'm guessing this is how Jens made the [script variables ((a)) < >] block grey.

Last edited by jackrulez (2010-07-13 09:26:15)


Yawn, another boring text signature. I should really make something better.

Offline

 

#17 2010-07-28 17:57:30

JeanTheFox
Scratcher
Registered: 2010-06-14
Posts: 1000+

Re: How do you permanently change the color of just one block

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


http://i51.tinypic.com/20gcn5j.png

Offline

 

#18 2010-07-28 18:40:30

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How do you permanently change the color of just one block

JeanTheFox wrote:

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

Yes.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer