I just realised what I miss the most in C2

Discussion and feedback on Construct 2

Post » Sat Aug 18, 2012 9:43 am

In Construct Classic there was this great functionality that is missing from C2 which for I would be grateful to the end of my days.

Remember "On loop" ? - You could assign a loop named "create cloud" and run it 100 times on start of layout and 10 times every 5 seconds. It acted like a function but without arguments and is currently impossible to implement without 3rd party plugins.

If it's not much of a hussle pretty please add this functionality to C2 I run a "beg you" loop 100 times.

Cheers!
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Sat Aug 18, 2012 9:57 am

You can easily create such a loop with events.

+ SomeVariable is "Loop"
+ Every 5 seconds
> Do stuff

And then you can stop the loop after 100 times. Many ways to do this.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Aug 18, 2012 2:28 pm

The pattern of using 'start loop' and 'on loop' is extraordinarily inefficient. It is maybe 10 times slower than using a 'repeat N times' or 'for' system condition. This is why the 'start loop'/'on loop' pattern was completely removed in C2 - it's always better to use a looping system condition in a subevent, and it achieves the same thing.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sat Aug 18, 2012 4:10 pm

thanks @Mipey , this is great idea and should be working - would never think of it this way
B
81
S
50
G
10
Posts: 555
Reputation: 13,009


Return to Construct 2 General

Who is online

Users browsing this forum: Arima, Paradox and 6 guests