How do I insert while loop inside of function or Group?

Get help using Construct 2

Post » Sun Feb 14, 2016 7:10 am

Message: user5487 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
hey so i wonder how to put this code inside of a function or group without infinty loop?
when i put the code inside of a function or Group that Loop wont stop and its count up to infinty

https://www.scirra.com/tutorials/315/generating-random-numbers-without-duplicates
B
4
Posts: 6
Reputation: 212

Post » Wed Feb 17, 2016 3:49 pm

Why not use a for loop?

Instead of a "while" loop, you can use a for loop from 0 to Array.Width-1.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,349
Reputation: 4,692


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], PauloMarcio, Phacanu and 3 guests