How do I random only with selected numbers

Get help using Construct 2

Post » Sat May 27, 2017 9:28 am

I read the Native expresion manual on Random:
https://www.scirra.com/tutorials/77/nat ... onstruct-2

So i don't know if is possible, but there is anyway to select the numbers to random? i mean:

Random(2/4/8/32)

So will random and select one number of the given ones. Is possible?

Thanks
B
27
S
10
G
3
Posts: 612
Reputation: 4,676

Post » Sat May 27, 2017 9:30 am

You can use choose() for that

choose(2,4,8,32)

it will only select 1 of those 4 numbers.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,592

Post » Sat May 27, 2017 9:34 am

@lennaert Worked perfectly, Thanks!
B
27
S
10
G
3
Posts: 612
Reputation: 4,676


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 27 guests