Change layer background?

Get help using Construct 2

Post » Fri Jul 13, 2012 7:23 am

Hi everyone!

Is it possible to change the background colour of a layer using events?

If this is not currently possible, is anyone aware of an existing plug-in providing the functionality, or should I go ahead and write my own?

I'm aiming to have a solid-coloured background which gradually changes colour over time. A tiled background doesn't seem to be an effective choice due to the lack of animations, leaving me with the choice of loading in additional images over time. A large animated sprite strikes me as inefficient, as I would need an additional animation frame for each of the many different shades/colours I want to display.

I don't imagine writing my own plug-in to achieve this would be at all difficult, but I'd rather not spend my time duplicating existing work if there's already a good solution.

Thanks in advance for any responses!

//EDIT: I found R0J0hound's canvas plugin which appears to be capable of what I'm trying to achieve -- but if there are no other suggestions for a more "light weight" solution I'll probably go ahead and develop my own anyway -- it seems rather excessive to include such a plug-in for the one very basic feature I'm after.jbadams2012-07-13 07:37:26
Posts: 110
Reputation: 3,648

Post » Fri Jul 13, 2012 7:58 am

Try a 2x2 animated sprite, stretched to the layout size.
Image ImageImage
Posts: 8,578
Reputation: 121,892

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests