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
23
S
10
G
3
Posts: 542
Reputation: 4,434

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,562

Post » Sat May 27, 2017 9:34 am

@lennaert Worked perfectly, Thanks!
B
23
S
10
G
3
Posts: 542
Reputation: 4,434


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], troxx, TwistedSaviour and 1 guest