How do I give integers

Just started using Construct 2? Post your questions here

Post » Fri Jul 04, 2014 8:31 am

I do a global score and if The box destroyed.I gived random Score (0,3)
But The system give 1,65486485
How can I do this number 1,2 or 3?
Not:I know .My english is very bad
B
9
S
4
Posts: 8
Reputation: 751

Post » Fri Jul 04, 2014 8:45 am

to get either 1, 2 or 3 use int(random(1,4))

or

choose(1, 2, 3)
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Jul 04, 2014 9:06 am

thank you codah
B
9
S
4
Posts: 8
Reputation: 751

Post » Fri Jul 04, 2014 9:11 am

Welcome
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests