How do I Fade bg to different colors as the game progresses

0 favourites
  • 5 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • When the players score reaches a certain number I want the background to fade from Green to Blue, then when their score another number, I want the background to fade from Blue to Red.. etc

    Right now I have created a background object with the Fade behavior, and I have set the frames to the different colors, I've also been changing the background color of the layer but I am bit mixed up about the order to do things in.

    Is there a simpler way to do this?

  • You can set a background layer as non transparent and then System -> Set layer backgroud color. I haven't tried that, and I'm not sure how it will affect the performance, but it gives you a kind of freedom with the dynamic background color.

  • Okay,

    So what would the order of the logic be?

    Sky starts off as light blue (frame 0)

    //22 Sky is Pink (frame 1)

    //23 Sky is Black (frame 2)

    //24 Sky is Gray (frame 3)

    This somewhat works but makes something weird happen. The left half of the game window background fades to the proper color but the right half transitions to the proper color instantly.

  • bump

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • why not use a tiled background object?

    all it would have to be is 1px by 1 px..

    scale it to the project size, and use the fade behaviour on it after creating a new one in a new colour..

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