Random problem! :(

Non-platform specific questions.

Random problem! :(

Postby Rux » Fri Dec 28, 2007 11:43 pm

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. :)
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Random problem! :(

Postby MrScience101 » Sat Dec 29, 2007 2:02 am

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.
User avatar
MrScience101
 
Posts: 115
Joined: Tue Mar 20, 2007 9:52 pm
Score: 13 Give a positive score

Re: Random problem! :(

Postby Rux » Sat Dec 29, 2007 4:20 am

That's the problem. GE isn't reading "that" script correctly!
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Random problem! :(

Postby Lightboy » Sat Dec 29, 2007 4:32 am

Have you checked it with any actor which has
Code: Select all
textNumber=random_number;

???
I bring light all the way
User avatar
Lightboy
 
Posts: 3
Joined: Mon Oct 29, 2007 2:19 pm
Location: Rainbow of Heaven
Score: 0 Give a positive score

Re: Random problem! :(

Postby Rux » Sat Dec 29, 2007 4:33 am

"Edit" Ok I found my problem. The color changing code was wrong. So it made 2 colors the same. Ok I can continue. :D
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron