"Change () Effect by ()" redirects here. For the sound block, see Change () Effect by () (Sound block).
Change () Effect by ()
change [ v] effect by ()
Category Looks
Type Stack
Introduced in 31Mar05i (0.x)

The Change () Effect by () block is a Looks block and a stack block. The block changes the specified Graphic 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
forever
change [color v] effect by (5)
  • Using the fisheye effect to make a sprite look like it is in water
forever
repeat (10)
change [fisheye v] effect by (2)
end
repeat (10)
change [fisheye v] effect by (-2)
  • Whirling sprites with the whirl effect
forever
change [whirl v] effect by (1)

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))

See Also