How do I changing background colors with gradient effect

Get help using Construct 2

Post » Thu Feb 26, 2015 7:26 am

hi all,
any one knows how to change the background colors for example from blue to red but not directly
but with graient or fader effect
thanks
B
44
S
16
G
8
Posts: 790
Reputation: 8,277

Post » Thu Feb 26, 2015 8:17 am

Hi,

with the effect "set color", you can change the params progressively in the event sheet.
3 instances variables : R, G and B. Play with that. And every tick, set the parameter of the effect to those values.

Something like :
Untitled.png
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 45
Reputation: 509

Post » Thu Feb 26, 2015 8:52 am

Adisma wrote:Hi,

with the effect "set color", you can change the params progressively in the event sheet.
3 instances variables : R, G and B. Play with that. And every tick, set the parameter of the effect to those values.

Something like :
Untitled.png


ah ok thanks you
i hope this will not affect performance :D :D :D
B
44
S
16
G
8
Posts: 790
Reputation: 8,277

Post » Thu Feb 26, 2015 9:01 am

You can do the Sprite.setColor only when you change the values of instance variables to avoid the update at each tick :)
B
6
S
1
Posts: 45
Reputation: 509

Post » Sat Feb 28, 2015 12:36 am

it seem that work only with web gl
i don't use webgl
can i do it without webgl ?
thanks
B
44
S
16
G
8
Posts: 790
Reputation: 8,277


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests