How to make system repetition of Layouts with "loop"?

Get help using Construct 2

Post » Wed Jan 07, 2015 6:41 pm

I want make a system of repetition of layouts in a determined time(example, in 2 minutes, the layout "1" ends & the layout 2 start. Later of 2 minutes, the layout 2 ends & the layout 1 start again). I want make this system for maps for my game, equal the game Transformice.


Again: I want make system of repetition OF LAYOUTS. Example: The layout 1(or phase 1) end, the layout 2(phase 2) start. Later of 2 minutes, the layout 1 start again(automatic).

This system is equal of Transformice Maps(phases).
B
4
Posts: 32
Reputation: 264

Post » Wed Jan 07, 2015 9:17 pm

Please, answer-me! I Know that is prohibited give a "UP" on topic, but is urgent.
B
4
Posts: 32
Reputation: 264

Post » Wed Jan 07, 2015 9:23 pm

Well, how would you do it in real life? Right, with a timer! So build one - Make a variable, say, Timer and do something like Every tick Timer = timer + dt. Then on Timer > 120 (seconds) System: Go to layout - whatever.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Wed Jan 07, 2015 9:43 pm

Somebody wrote:Well, how would you do it in real life? Right, with a timer! So build one - Make a variable, say, Timer and do something like Every tick Timer = timer + dt. Then on Timer > 120 (seconds) System: Go to layout - whatever.


@Epiconnn, in your searching, you didn't find "System: Every x seconds" or "Timer" behaviour? Either one should work.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Wed Jan 07, 2015 9:46 pm

Thank you for you!

@Codah, I want a system automatic :(! This mode is manual... But i'll test.

Error: Just is repeats the same layout. :(! And now? Wich do?
B
4
Posts: 32
Reputation: 264

Post » Thu Jan 08, 2015 6:38 am

Epiconnn wrote:Thank you for you!

@Codah, I want a system automatic :(! This mode is manual... But i'll test.

Error: Just is repeats the same layout. :(! And now? Wich do?


I'm sorry, but I don't understand. Please provide a .capx of what you've tried,or try and tell us clearly what you want, or make a diagram, or something.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Jan 08, 2015 6:52 am

Layout 1 event sheet:

on start of layout -> system, wait 120 seconds
-> system, go to layout 2


Layout 2 event sheet:

on start of layout -> system, wait 120 seconds
-> system, go to layout 1
B
18
S
4
Posts: 87
Reputation: 1,199

Post » Thu Jan 08, 2015 6:59 am

Just to add a little note - my suggestion is based on possibly needing to extend the time (like if you pick up a time bonus) and also being the most precise in such a case. Of course every X seconds or Wait works as well if there's no need to change the possible timeframe on the fly.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Jan 08, 2015 7:05 am

If you want to use var: global var (layout timer = 120)
system, every 1 seconds -> subtract 1 from *layout timer*
compare var, *layout timer* = 0 -> go to layout x
B
18
S
4
Posts: 87
Reputation: 1,199

Post » Thu Jan 08, 2015 1:46 pm

Thanks for all :)! I'll test. I speak here about the result!
B
4
Posts: 32
Reputation: 264


Return to How do I....?

Who is online

Users browsing this forum: ezgaming420, marcinkowski, Tinimations, Tiradentes, Yahoo [Bot] and 2 guests