why is random not random?
AKB
Member Posts: 7
I have seen many posts regarding this issue, but it seems to have not been solved yet.
How can I make dropping items from the top of the screen random?
Thanks
How can I make dropping items from the top of the screen random?
Thanks
Comments
There was talk of random not working at all within GS at one time, but I don't remember having any trouble; perhaps someone else will chime in there...
So anyway, say if you want an actor to "drop at random times and replicate with a random number", I'm assuming you mean you just need random spawning? (The moment they are spawned, they'd drop immediately?) If so, look at using a Timer Behaviour to randomly generate a Spawn Actor Behaviour, something like:
When touched is pressed
Every random(3,10) ---or whatever your min and max seconds are ---
Spawn Actor.
Anyhow, after all that, hope I understood your question correctly and it helps!
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
That was helpful, yet I am using every random(min,max) but don't seem to
get a random output. The outputs are very close to each other (i.e. time intervals are
almost identical)
I'll do a little test for interest and see if I can see what's what... !
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Let's hope that it's all sorted in 0.9.0 which is imminent, so we're told. Sorry can't help anymore than that.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
this timing being different each time, it might jumpstart the code?