Change Colour Effect:
What does this effect do?
This effect changes the colour of the sprite.
What do each of the codes represent?
The When () Key Pressed block is a control block and a hat block and scripts that wear this will activate when the specific key is pressed (in this case, w). In this tutorial, the space bar activates how the butterfly changes it colour.
The set () Effect () block is a looks block and a stack block. The block sets the specified effect on its sprite to the specified amount. In this case the effect is colour. The number 25, states the amount of change in colour. If the number is higher, their will be a greater change in colour, but if it is a smaller number, it will only change by a little amount.
No comments:
Post a Comment