Need help

Get help using Construct 2

Post » Thu Nov 14, 2013 1:55 am

I want to program a text so, when it is clicked, it displays a random number from 1 to 5, but I don't know how to. Someone please help me!
B
12
S
2
Posts: 4
Reputation: 1,562

Post » Thu Nov 14, 2013 2:30 am

Something like...

Mouse > On Text Clicked > Set Text to str( round( random(1,5) ) )

Should do just fine.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764

Post » Thu Nov 14, 2013 2:37 am

@PrinceCooshie101

You can look in the tuts, there is alot of useful tips on using arrays.

here is one not sure if its exactly what your looking for.

https://www.scirra.com/tutorials/315/generating-random-numbers-without-duplicates
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645


Return to How do I....?

Who is online

Users browsing this forum: Fradno, Google [Bot] and 15 guests