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

#1 2013-04-09 00:12:39

PPJB
New Scratcher
Registered: 2012-04-09
Posts: 24

I can't understand a thing…

What does the Color block? And what effect corresponds to what number? Because I want to make a sprite that changes its color depending the team of the sprite, but I only want to make an only sprite.

Offline

 

#2 2013-04-09 01:36:26

mikebmac
Scratcher
Registered: 2013-03-17
Posts: 46

Re: I can't understand a thing…

PPJB wrote:

What does the Color block? And what effect corresponds to what number? Because I want to make a sprite that changes its color depending the team of the sprite, but I only want to make an only sprite.

Missing a few words here, so I may not be answering your question. I thinking you are asking how to change a sprite's colour depending on the team it is on. There is a few ways to do that, but I would use a variable for the team. An example script is below.

when gf clicked
   set [team v] to (1)
when gf clicked
forever
   if <(team) = (1)>
      set [color v] effect to (0)
      end
   if <(team) = (2)>
      set [color v] effect to (50)
      end
when I receive [Change Team 1 v]
   set [team v] to (1)
when I receive [Change Team 2 v]
   set [team v] to (2)

What this will do is change the sprite's colour depending on if it is on team 1 or 2. Please note, I have not defined is what conditions are needed to change the sprite's team. To learn more about colours and other related information would recommend looking at the Scratch Wiki. Here is a direct link to the article about colour.
http://wiki.scratch.mit.edu/wiki/Color_Effect#Color


http://i42.tinypic.com/21lo482.jpg HD Crash will restart production after 2.0
Related: (Concept Game) (Heroine Bio) (Sample Scroller /w Heroine Animation)

Offline

 

#3 2013-04-09 12:16:00

PPJB
New Scratcher
Registered: 2012-04-09
Posts: 24

Re: I can't understand a thing…

Thanks, I was trying out this block. But I cant't yet understand how this block works. For example, I put two Scratch Cat sprites and I repainted one of these all white. I applied the color block, and the white sprite doesn't changed too much, why occour this?

Offline

 

#4 2013-04-10 09:16:53

topazdragonlord
Scratcher
Registered: 2013-02-22
Posts: 500+

Re: I can't understand a thing…

PPJB wrote:

Thanks, I was trying out this block. But I cant't yet understand how this block works. For example, I put two Scratch Cat sprites and I repainted one of these all white. I applied the color block, and the white sprite doesn't changed too much, why occour this?

The colour effect block depends on the colours of the sprite, for example- a completely black sprite doesn't change at all, but a purple sprite will change quite a lot.


http://i45.tinypic.com/idumbk.png

Offline

 

Board footer