Array

Get help using Construct 2

Post » Thu Apr 30, 2015 2:25 pm

Hi Guys, how do i randomly retrieve an element from an an array i created?
B
4
S
1
Posts: 17
Reputation: 390

Post » Thu Apr 30, 2015 3:01 pm

array.at(floor(random(0,array.width)))
for a one-dimensional array
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Thu Apr 30, 2015 6:25 pm

Thanks mindfaQ
B
4
S
1
Posts: 17
Reputation: 390


Return to How do I....?

Who is online

Users browsing this forum: RIDETHEPIG and 5 guests