How do I a different random number every lap

Get help using Construct 2

Post » Wed Oct 01, 2014 6:38 pm

Hello,

First of all, i'm french so I apologize if I do some english grammar mistakes in this topic ^^

I'm a Construct 2 beginner and I try to learn by myself but my project doesn't advance because of a problem. I need to Set a Random Value to a Variable named "Numero" every "temps" seconds... But the problem is that this value must be different from the previous value of "Numero" and i don't know how to do this :S

Here's a part of my Event Sheet. What should i add ?
Global number Numero = 10
Global number temps = 1

System - On every temps seconds: *System - Set Numero to floor(random(9))
B
3
Posts: 2
Reputation: 179

Post » Wed Oct 01, 2014 7:11 pm

Your best bet is a while loop and a temp variable under the every "temps" seconds.
You do not have the required permissions to view the files attached to this post.
B
67
S
28
G
24
Posts: 970
Reputation: 18,675

Post » Wed Oct 01, 2014 8:56 pm

Thanks :D It works !
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Malhog and 12 guests