How do I create infinite changing background?

Get help using Construct 2

Post » Tue Dec 20, 2016 11:02 pm

Hi im triying to create a game similar to the flappy bird in terms of the background, I need it to be endless but also I need it to change gradually ( similar like if you are going deeper into the ocean) I need it to become darker as you are moving foward.

Any help? thanks a lot seriously, Im getting so frustrated with this haha.
B
3
Posts: 3
Reputation: 181

Post » Tue Dec 20, 2016 11:54 pm

First do u have the game built? if not u can use the flappy bird template and go from their, second u can use a sprite as a trigger event to make the background change color.To do this place it in between both pipes make sure collisions are on, now create a code "on collision with other object" select the corresponding sprite your colliding with,now all u have to do is create several animations that have different colors lets say grey fading all the way to black you will also need a variable name it anything for example background switch, create different number values and set each animation to the color u want it to be also make sure the variable will go up and reset on the value u want it to, for example if background switch = 1 set animation "Default or animation name"
B
4
Posts: 4
Reputation: 208

Post » Tue Dec 20, 2016 11:58 pm

make sure every time u pass that sprite it adds one to the variable doing this will lchange the color then u could reset it to go back whenever u want to
B
4
Posts: 4
Reputation: 208

Post » Wed Dec 21, 2016 12:12 am

thx a lot im gonna try that
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 4 guests