Thread: Clouds
View Single Post
  #4  
Old 02-22-2002, 11:11 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Clouds

Quote:
Originally posted by nyghtGT
Here is a little script I made for an little Graal Omive i am making:
NPC Code:

NPC Code:

// NPC made by NyghtGT
if (created) {
setimg smoke.gif;
this.speed=0.2; // Increase to go faster
this.startx=x;
this.starty=y;
timeout=1;
drawoverplayer;
dontblock;
}
if (timeout) {
x-=this.speed;
updown();
if (this.updown=1) {
y=y;
} else {
if (this.updown=2) {
y-=0.2;
} else {
y+=0.2;
}
}
poscheck();
timeout=0.12;
}
// Functions
function updown() {
this.updown=int(random(0,3));
}
function poscheck() {
if (x<=2) {
x=62;
y=int(random(0,64));
sleep 1;
this.x=x;
this.y=y;
}
}




I had to use smoke.gif for know till i can make me some better cloud images. But what it does is the movie starts and the clouds come in ... and blah blah blah, you'll just have to wait, . I know this script is very basic but does it seem to be ok for my purposes ?
Yes it does, but you might want to have a varying speed for different clouds
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote