Tweens, right click object> Add> Behavior> GENERAL> Tween, offers a wide variety of animatable properties. Those include position, size, opacity, and even color.
This tut will show you how to use the color filter to add a changing color effect to your project.
Make sure its enabled.
Its is by default.
Its is by default.
On to events.
+ System: On start of layout
-> Sprite2: Tween "c0" property Color to rgb(51, 48, 228) in 2 seconds (Default, destroy: No, loop: No, ping pong: No, repeat count: 1)
-> Particles: Fast-forward 120 seconds
+ Sprite2: On Tween "c0" finished
-> Sprite2: Tween "c1" property Color to rgb(246, 55, 236) in 2 seconds (Default, destroy: No, loop: No, ping pong: No, repeat count: 1)
+ Sprite2: On Tween "c1" finished
-> Sprite2: Tween "c2" property Color to rgb(251, 180, 84) in 2 seconds (Default, destroy: No, loop: No, ping pong: No, repeat count: 1)
+ Sprite2: On Tween "c2" finished
-> Sprite2: Tween "c3" property Color to rgb(250, 234, 72) in 2 seconds (Default, destroy: No, loop: No, ping pong: No, repeat count: 1)
+ Sprite2: On Tween "c3" finished
-> Sprite2: Tween "c0" property Color to rgb(51, 48, 228) in 2 seconds (Default, destroy: No, loop: No, ping pong: No, repeat count: 1)
At the start of the layout make a custom tag named "c0" and choose the option to tween its color.
Tags allow us to reuse this tween, and even start new tweens as you see in the addition events after the start of layout.
As you can see this works as a chain of endless events changing from one color to the next, and back to the original using the "on finished" trigger.
Find the source: here
Comments
Post a Comment