Random problem! :(
Posted:
Fri Dec 28, 2007 11:43 pm
by Rux
When I use the random code GE doesn't read all the random possibilities. It just does like the first 2 options out of 3.I've tried everything I can think of; NOTHING!
I really need help on this, for my new and improved fireworks game. It's got better GRFX than fireworks show maker.I'm using v1.3.8. Thanks.
Re: Random problem! :(
Posted:
Sat Dec 29, 2007 2:02 am
by MrScience101
What kind of random are you looking for? rand(4), returns a random number of 0, 1, 2, or 3. So in the script editor type:
int random_number;
random_number = rand(4);
random_number will have a 0, or 1, or 2, or 3 in it.
Take care. I love your fireworks demo by the way. It is really cool.
Re: Random problem! :(
Posted:
Sat Dec 29, 2007 4:20 am
by Rux
That's the problem. GE isn't reading "that" script correctly!
Re: Random problem! :(
Posted:
Sat Dec 29, 2007 4:32 am
by Lightboy
Have you checked it with any actor which has
- Code: Select all
textNumber=random_number;
???
Re: Random problem! :(
Posted:
Sat Dec 29, 2007 4:33 am
by Rux
"Edit" Ok I found my problem. The color changing code was wrong. So it made 2 colors the same. Ok I can continue.