After Random toggle can't be toggled again...?

Get help using Construct 2

Post » Mon Mar 18, 2013 5:08 pm

Hey Guys,
im New to the Forums and the hole Conctruct 2 thing but it's quiete intresting. I've spent some hours playing arround with Construct 2, but now I have a problem I just can't figure out (Im a Newbie/Noob so im sorry if there is a obvious answer...).

I want to achieve that after one Number is Picked, it can't be picked anymore till it's reset. Something Like this:

round(Random(1,15))

If 7 is picked, and the action is toggled again, every Number should be able to be picked again except 7.

What's the way of doing that?

Thanks :-)
B
3
Posts: 2
Reputation: 334

Post » Mon Mar 18, 2013 9:08 pm

Easiest way I can think of would be to use an array.

Something like this:

B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Mon Mar 18, 2013 11:07 pm

Just wanted to point out really quick that if you use

round(Random(1,15))

1 and 15 have half the chance of the each of the other numbers getting picked.

Better to use floor(random(1,16))

Cheers
Mistakes were made.
B
37
S
17
G
67
Posts: 1,041
Reputation: 38,211

Post » Tue Mar 19, 2013 8:12 pm

Thanks for the answers i'll try it.
See ya1
B
3
Posts: 2
Reputation: 334


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest