I've noticed that a few projects show objects fading. I have absolutely no clue even how to change the opacity of an object.
Offline
Use the ghost effect. If the ghost effect is at 0, the object is opaque. If the ghost effect is at 100, the object is transparent.
To fade in, the ghost effect is at 100 and we want it to reach 0. So we will decrease the ghost effect by a little bit each time. (A good number to use is four). Now that you know what number your "little bit" is, you have to repeat this process a certain number of times until it reaches zero. (For four, that would be 25 because 25*4=100)
Use the script
[blocks]
<repeat( 25
<change[ ghost ]effect by( -4
[/blocks]
Remeber that negitives decrease the number.
To fade out, the ghost effect is at 0 and we want it to reach 100. So we will increase the ghost effect by a little bit each time. (A good number to use is four). Now that you know what number your "little bit" is, you have to repeat this process a certain number of times until it reaches zero. (For four, that would be 25 because 25*4=100)
Use the script
[blocks]
<repeat( 25
<change[ ghost ]effect by( 4
[/blocks]
Remeber that positives increase the number
Hopefully that helps!
Offline
If you're doing what greenflash says, remember this: You can also change the amounts. Just make sure that the repeat count and the change amount multiplied together make a hundred!
Offline
Thanks guys. It helped tons.
Offline
Chrischb wrote:
If you're doing what greenflash says, remember this: You can also change the amounts. Just make sure that the repeat count and the change amount multiplied together make a hundred!
And if you want the fade in/out to happen more slowly, you can add "Wait 0.1 seconds" inside the Repeat block. (Or any Wait amount....)
Offline
<when green flag clicked> <set[ ghost ]effect to( 0 <repeat( 100 <change[ ghost ]effect by( 1
To fade away
<when green flag clicked> <set[ ghost ]effect to( 100 <repeat( 100 <change[ ghost ]effect by( -1
To fade appear
Hopefully this help!
Offline