Hey I'm trying to create a Random Fly Pattern.
<img src="http://img43.imageshack.us/img43/611/flyerror.png" border="0" />
It is Not working.
However If I change the Random(8) to a Number. Then it works.. But is ofc not random...
What about round(random(1-8))?
Think something's a little off that. Should I use round or float? Hmm...
Also, do you need the "elses"?
Sadly not working.. I probably dont need the elses :) But not working with or without
Develop games in your browser. Powerful, performant & highly capable.
Generate a random float from 0 to x, not including x. E.g. random(4) can generate 0, 2.5, 3.29293, but not 4. Use floor(random(4)) to generate just the whole numbers 0, 1, 2, 3.