Thread: Help Me!!!
View Single Post
  #7  
Old 08-04-2001, 03:12 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
a sweet thing is to make glowing orbs.. like a light that glows..
here is a code . im making this out of the top of my head so dont know if they will work or not

NPC Code:

timeout=.15;
if (timeout) {
check();
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow*.1;
}
function check() {
if (this.glow<9&&this.goback=0) { this.glow++; }
if (this.glow>0&&this.goback=1) { this.glow--; }
if (this.glow=0&&this.goback=1) { this.goback=0; }
if (this.glow=9&&this.goback=0) { this.goback=1; }
}



or you can do a random one...

NPC Code:

timeout=.15;
if (timeout) {
this.glow=random(0,10);
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow*.1;
}



or one that keeps going shinier..

NPC Code:

timeout=.15;
if (timeout) {
this.glow=(this.glow+1)%.9;
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}



or one that goes from shiny to non shiny...

NPC Code:

timeout=.15;
if (timeout) {
this.glow=(this.glow+.9)%1;
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}



or one that blinks

NPC Code:

timeout=.15;
if (timeout) {
if (this.glow=.9) { this.glow=0; }
else { this.glow=.9; }
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote