Submitted by: Wyrmcreature
Date: 2013-09-23 15:06

(0) comment(s)

Rated
Code:
nucleus1.windDirectionX = 0 + rand(-1,1);
nucleus1.windDirectionY = 0 + rand(0,0);
nucleus1.windDirectionZ = 0 + rand(-1,1);




if( (frame%30) == 0 ) {

nucleus1.windSpeed = rand(0.5,5);
nucleus1.windNoise = rand(1,4);

if( nucleus1.windDirectionX == 0) {
nucleus1.windDirectionX = 0 + rand(-1,1);
};

if( nucleus1.windDirectionX > 0 ) {
nucleus1.windDirectionX = 0 + rand(-1,0);
};

if( nucleus1.windDirectionX < 0 ) {
nucleus1.windDirectionX = 0 + rand(0,1);
};

if( nucleus1.windDirectionY == 0) {
nucleus1.windDirectionY = 0 + rand(-1,1);
};

if( nucleus1.windDirectionY > 0) {
nucleus1.windDirectionY = 0 + rand(-1,0);
};

if( nucleus1.windDirectionY < 0) {
nucleus1.windDirectionY = 0 + rand(0,1);
};

if( nucleus1.windDirectionY == 0) {
nucleus1.windDirectionZ = 0 + rand(-1,1);
};

if( nucleus1.windDirectionY > 0) {
nucleus1.windDirectionZ = 0 + rand(-1,0);
};

if( nucleus1.windDirectionY < 0) {
nucleus1.windDirectionZ = 0 + rand(0,1);
};


};


if( (frame%30) == 0 ) {

nucleus1.windSpeed = rand(1,3);

nucleus1.windDirectionX = 0 + rand(-1,1);
nucleus1.windDirectionY = 0 + rand(-1,1);
nucleus1.windDirectionZ = 0 + rand(-1,1);
nucleus1.windNoise = rand(1,3);

};



Code:
if( (frame%30) == 0 ) {

nucleus1.windSpeed = rand(0.5,5);
nucleus1.windNoise = rand(1,4);

if( nucleus1.windDirectionX == 0) {
nucleus1.windDirectionX = rand(-1,1);
};

if( nucleus1.windDirectionX > 0 ) {
nucleus1.windDirectionX = 0 + rand(-1,0);
};

if( nucleus1.windDirectionX < 0 ) {
nucleus1.windDirectionX = 0 + rand(0,1);
};


};




Point notes:

If dinosaur leave by it self, you get highest points for that type
If dinosaur leave by being scared you get less