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
30
S
12
G
3
Posts: 683
Reputation: 5,108

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,880
Reputation: 19,628

Post » Sat May 27, 2017 9:34 am

@lennaert Worked perfectly, Thanks!
B
30
S
12
G
3
Posts: 683
Reputation: 5,108


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests