How do I Create a Cycle?

Get help using Construct 2

Post » Tue Oct 27, 2015 7:23 pm

Im traying to create a day/night cycle in my game but nothing seems to work, can you help me?
B
6
S
1
Posts: 13
Reputation: 376

Post » Tue Oct 27, 2015 7:59 pm

What have you tried already?

You mean just have brighter light every few minutes... then turn to darkness and back?
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,068

Post » Tue Oct 27, 2015 9:27 pm

You could do an event that says Every X seconds> change "Yourbackground" to animation frame 1
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Tue Oct 27, 2015 10:04 pm

Well, during 10 minutes, the game will be at day time, after that, 5 minutes of night time and so on, during the night, the behaviour of some elements are going to change, some things will only work at night and other won't.

If you need any more detail, ask me bellow and I will help you.
B
6
S
1
Posts: 13
Reputation: 376

Post » Tue Oct 27, 2015 11:40 pm

Ok what about you make a variable, and name it "Day" then you would do If "Day" = False > Then wait X Seconds> then set "Day" to true
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Wed Oct 28, 2015 12:57 pm

IanHarlow wrote:Ok what about you make a variable, and name it "Day" then you would do If "Day" = False > Then wait X Seconds> then set "Day" to true


It worked! Thanks bro!
B
6
S
1
Posts: 13
Reputation: 376


Return to How do I....?

Who is online

Users browsing this forum: beohs, Elliott and 18 guests