car lane and image overlapping

Get help using Construct 2

Post » Wed Oct 16, 2013 12:24 am

@Paradox, sorry but for the second event what is the work of the system random(20)<1?
B
15
S
4
Posts: 138
Reputation: 2,003

Post » Wed Oct 16, 2013 11:05 am

Just making it a bit more random, there is a 1 in 20 ticks chance it will be true.

It's the "random variance" I mentioned, if you leave it out, the cars will spawn as soon as the last one has cleared the spawner.

I'm not online much at the moment, I'm trying to finish my entry for the Tizen contest, and still have too much to do.

Edit: That's not an ideal way to do random, I was rushing a bit. The faster a computer processes ticks, the faster it will come up true.
In other words, faster computers would spawn cars faster.Paradox2013-10-16 11:09:00
B
226
S
60
G
33
Posts: 902
Reputation: 39,989

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests