Fading Between Layer Colours?

Get help using Construct 2

Post » Sun Feb 23, 2014 4:34 am

It's me again. This will hopefully be my final question, but I am just wondering how I would go about fading between layer colours?

At the moment I am setting a layer background colour to a random, R,G and B value and every 10 seconds the colour will change to another random colour, but I want this to be a soft fade effect not a hard and sudden colour change. How would I go about fading between layer colour changes without there being a glimpse of any transparency or background colour showing?

I thought of a two events at once with delay approach, but it seems hacky in that if any of the events go out of time, then the other event won't be perfectly in time.

Help is gratefully appreciated.
B
6
S
1
Posts: 43
Reputation: 536

Post » Sun Feb 23, 2014 7:55 am

I tinkered with an attempt ...

capx
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Mon Feb 24, 2014 1:33 am

lennaert wrote:I tinkered with an attempt ...

capx


Wow, that works really well. Thank you very much.

It seems as though fading colour values on a single layer isn't achievable, using your approach I am doing this and it works the way I wanted it to.

> Have two layers with randomly generated colours
> Every ten seconds hide the current layout and show the next randomly generated colour layout by fading the previous one out and fading the next one in at the same time
B
6
S
1
Posts: 43
Reputation: 536


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, namaewayukidesu and 6 guests