How do I make a random score

Get help using Construct 2

Post » Fri Jun 27, 2014 8:06 am

I'm trying to generate a random score for my game. I can get it to work but its not what i want because for example i want a random score between (1,10) as in 1,2,3,4,5 ect but instead im getting 3.396574928,4.093840935 how can i fix this ? any help would be great :D and thanks
B
10
S
2
Posts: 7
Reputation: 705

Post » Fri Jun 27, 2014 8:10 am

round(random(1,10))
B
10
S
2
G
1
Posts: 44
Reputation: 817

Post » Fri Jun 27, 2014 8:13 am

brilliant thank you
B
10
S
2
Posts: 7
Reputation: 705

Post » Fri Jun 27, 2014 3:57 pm

You're welcome
B
10
S
2
G
1
Posts: 44
Reputation: 817


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests