Simple question?

Get help using Construct 2

Post » Fri Jul 27, 2012 4:35 am

If i have a repeat loop and set it to repeat 4 times what happens when the 4 times is reached. Also within the Loop i have a sub event that checks to see if something isn't colliding. If it isn't then it will stop the loop. But how does the loop turn back on?


It's not really a problem i'm having i'm just trying to reverse engineer a script someone helped me with. I wanna get better at scripting.

B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Fri Jul 27, 2012 7:35 am

After the loop is finished, the game simply moves on to the next event below.

The 4 repeats would all happen on each single read-through of the event sheet (1 tick), so for example: 'repeat 4 times>' would be the equivalent of having the same event 4 times consecutively.
Whereas the non-existant "trigger 4 times" would cause it to happen on each tick for the next 4 ticks... which I have a feeling is how you imagined loops to work. (I was the same)


If the sub-events conditions aren't met, then it's actions and any further sub-events won't run.
This is the same case for sub-events everywhere... The loop will continue if it has other stuff to do.keepee2012-07-27 07:38:35
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Mon Jul 30, 2012 11:05 pm

Thank you
B
22
S
5
G
3
Posts: 194
Reputation: 5,855


Return to How do I....?

Who is online

Users browsing this forum: YoHoho and 11 guests