How do I change the color background through the time?

Get help using Construct 2

Post » Thu Sep 17, 2015 6:13 pm

Hi!
I need to change the colour background through the time, for example, start with green and in 10 seconds change to blue, and after 10 sec more change to yellow etc etc.

How can i to make that?, if is possible with gradient between color and color.

All of that in tiled background

If you know the game geometry dash you understand the idea.

Thanks!
B
4
Posts: 50
Reputation: 290

Post » Thu Sep 17, 2015 7:20 pm

Hi @crynof

You can create a timer (viewtopic.php?f=147&t=153828&p=969548&hilit=timer#p969548) or use the "time" object (if you want to control the time) or the wallclock object (real-world time) (https://www.scirra.com/manual/126/system-expressions) and change the colors according to the seconds.

Look this thread to learn how to change the colors smoothly using lerp: viewtopic.php?f=178&t=151180&p=958135&hilit=change+background+color#p958135
B
74
S
13
G
3
Posts: 995
Reputation: 7,531


Return to How do I....?

Who is online

Users browsing this forum: newt, Yahoo [Bot] and 12 guests