m (BOT: preparing for transfer)
m (3.0 block)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{transfer}}
+
{{April Fools}}{{about|the Looks block|the sound block|Change () Effect by () (Sound block)}}{{block
{{block
 
 
| name      = Change () Effect by ()
 
| name      = Change () Effect by ()
| image      = File:2.0 Change () Effect by ().png
+
| image      = change [ v] effect by ()
 
| imagewidth = 184
 
| imagewidth = 184
 
| category  = [[Looks Blocks|Looks]]
 
| category  = [[Looks Blocks|Looks]]
 
| type      = [[Stack Block|Stack]]
 
| type      = [[Stack Block|Stack]]
| defaults   = color; 25
+
| defaults   = color; 25
 +
| sb        = yes
 
}}
 
}}
 
The '''Change () Effect by ()''' [[Blocks|block]] is a [[Looks Blocks|Looks block]] and a [[Stack Block|Stack block]]. The block changes the specified effect on its [[sprite]] by the specified amount. There are seven different effects to choose from: [[Graphic Effect#List of Graphical Effects|color, fisheye, whirl, pixelate, mosaic, brightness and ghost]].
 
The '''Change () Effect by ()''' [[Blocks|block]] is a [[Looks Blocks|Looks block]] and a [[Stack Block|Stack block]]. The block changes the specified effect on its [[sprite]] by the specified amount. There are seven different effects to choose from: [[Graphic Effect#List of Graphical Effects|color, fisheye, whirl, pixelate, mosaic, brightness and ghost]].
Line 12: Line 12:
 
==Example Uses==
 
==Example Uses==
 
As this block changes an effect, it is used whenever an effect's value must be changed - some common uses are:
 
As this block changes an effect, it is used whenever an effect's value must be changed - some common uses are:
*Changing the color of a graffiti can with the color effect
+
* Changing the color of a graffiti can with the color effect
*Using the fisheye effect to make a sprite look like it is in water
+
* Using the fisheye effect to make a sprite look like it is in water
*Whirling sprites with the whirl effect
+
* Whirling sprites with the whirl effect
*Pixelating sprites with the pixelate effect
+
* Pixelating sprites with the pixelate effect
*Creating the illusion of multiple sprites with the mosaic effect
+
* Creating the illusion of multiple sprites with the mosaic effect
*Creating different brightness levels with the brightness effect
+
* Creating different brightness levels with the brightness effect
*Making creatures transparent with the ghost effect
+
* Making creatures transparent with the ghost effect
*Making a sprite change colour (in the project) with the colour effect
+
* Making a sprite change color (in the project) with the color effect
  
 
There can be multiple effects on a sprite at once - effects can be combined to produce even more brilliant effects.
 
There can be multiple effects on a sprite at once - effects can be combined to produce even more brilliant effects.
Line 34: Line 34:
  
 
==See Also==
 
==See Also==
*[[Set () Effect to () (block)|Set () Effect to ()]]
+
* [[Set () Effect to () (block)|Set () Effect to ()]]
*[[Graphic Effect]]
+
* [[Graphic Effect]]
 
{{Looks Blocks}}
 
{{Looks Blocks}}
 
[[Category:Looks Blocks]]
 
[[Category:Looks Blocks]]
 
[[de:Ändere () Effekt um () (Block)]]
 
[[de:Ändere () Effekt um () (Block)]]
 
[[ja:() の効果を () ずつ変える (ブロック)]]
 
[[ja:() の効果を () ずつ変える (ブロック)]]

Latest revision as of 21:07, 24 August 2019

This article is about the Looks block. For the sound block, see Change () Effect by () (Sound block).
Change () Effect by ()
change [ v] effect by ()
Category Looks
Type Stack

The Change () Effect by () block is a Looks block and a Stack block. The block changes the specified effect on its sprite by the specified amount. There are seven different effects to choose from: color, fisheye, whirl, pixelate, mosaic, brightness and ghost.

Example Uses

As this block changes an effect, it is used whenever an effect's value must be changed - some common uses are:

  • Changing the color of a graffiti can with the color effect
  • Using the fisheye effect to make a sprite look like it is in water
  • Whirling sprites with the whirl effect
  • Pixelating sprites with the pixelate effect
  • Creating the illusion of multiple sprites with the mosaic effect
  • Creating different brightness levels with the brightness effect
  • Making creatures transparent with the ghost effect
  • Making a sprite change color (in the project) with the color effect

There can be multiple effects on a sprite at once - effects can be combined to produce even more brilliant effects.

Workaround

Main article: List of Block Workarounds

If a variable held the strength of the effect, the Change () Effect by () block could be replicated with the following code:

set [wanted v] effect to ((current amount) + (increase))

However, while this is not possible in current versions of Scratch, it is in some Scratch Modifications.

See Also