Gradient animation

Get help using Construct 2

Post » Wed Feb 15, 2012 11:48 am

What would be the best practice to make a background (tiled) that changes color in time with a nice transition?

I thought about a sine behaviour couple with a big gradient background, but it looks "expensive" memory wise, are there better options?

Thank you very much
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Wed Feb 15, 2012 12:16 pm

Interesting question.

I'd create a 64px sprite with the gradient and scale it to the canvas size, then animate opacity and/or y position so it would appear slowly and seamlessly. The 64px sprite can keep things light, but you can use 128px if the results aren't pretty.
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Wed Feb 15, 2012 12:41 pm

Last edited by Yann on Sun Sep 14, 2014 9:36 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed Feb 15, 2012 12:57 pm

Thanks to both @Yann your project requires the canvas plugin, which is what?
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Wed Feb 15, 2012 1:01 pm

Nevermind I found it, wonderful plugin!
B
29
S
9
G
6
Posts: 525
Reputation: 8,294


Return to How do I....?

Who is online

Users browsing this forum: heliogame and 19 guests