Change layer background?

0 favourites
  • 2 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • 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. <img src="smileys/smiley1.gif" border="0" align="middle">

    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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Try a 2x2 animated sprite, stretched to the layout size.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)