How do I make this while loop work

Get help using Construct 2

Post » Fri May 16, 2014 11:55 pm

i have a problem whith this while loop
i think its making an infinite loop
but i cant see where..

thanks in advance.

sorry for my english
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 34
Reputation: 434

Post » Sat May 17, 2014 12:05 am

I am also confused about the While condition. But in your case, do you really need it? What happens if you disable it and leave only the x<= 6 condition..?
composer - multimedia artist
www.eli0s.com/en/
B
68
S
26
G
4
Posts: 1,146
Reputation: 9,649

Post » Sat May 17, 2014 12:06 am

You don't have anything checking if numero is 0... It might be if that's what is in the array? If it is zero then you never increment x based on your loop conditions
B
20
S
7
G
1
Posts: 221
Reputation: 2,077

Post » Sat May 17, 2014 12:35 am

@eil0s ... it dosent happend anything... its the same if its enabled or disabled..
@troublesum.. it never has a 0 in the array... but i made another condition checking for 0.... and still the same..

any ideas?
B
8
S
1
Posts: 34
Reputation: 434

Post » Sat May 17, 2014 12:41 am

Wait does not block, which is what you are expecting. Check the manual. You should use the Timer behaviour to sequence your events.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sat May 17, 2014 12:46 am

i think i solved it!!! just moved the add 1 to x to the begining of each action..
and @blackhornet.. you are right.. thanks
B
8
S
1
Posts: 34
Reputation: 434


Return to How do I....?

Who is online

Users browsing this forum: khelaghor, R0J0hound and 6 guests