PDA

View Full Version : Moving light effects


-_Soulhunter_-
11-27-2001, 05:02 PM
sorry to bother again..

But how do i make moving light effects?
i saw some in the dancing place at the halloween place
and some in bird birds house i think.. please tell me!!

Slaktmaster
11-27-2001, 06:34 PM
just like any other moving npc.

or showimg of course, like they are.

Jerom
11-27-2001, 06:51 PM
if (created){
timeout = 0.05;
seteffect 1,1,1,0.9;}
if (timeout){
timeout = 0.05;
x+=0.25;}

Poof! A moving light effect!

Slaktmaster
11-27-2001, 07:16 PM
if (playerenters) {
this.angle = 0;
this.distance = 2;
timeout = 0.05;
}

if (timeout) {
this.x = x+sin(this.angle)*this.distance;
this.y = y+cos(this.angle)*this.distance;
this.angle+=0.05;
if (this.angle>6.28) {this.angle=0;}
showimg 0,light2.png,this.x,this.y;
changeimgcolor 0,1,1,1,0.8;
changeimgvis 0,2;
timeout = 0.05;
}

note that this is a client-side npc, not to be used with npc server.

-_Soulhunter_-
11-27-2001, 10:00 PM
Originally posted by Slaktmaster


note that this is a client-side npc, not to be used with npc server.
What does this mean?


And the thing worked,, it moved but the light effect was black
it wasent a shining light effect as normal.. Maybe you did something wrong

Mrmicro
12-07-2001, 04:40 AM
Isnt this Part of the forums called "Graal Level Editing" not "NPC Scripting"?

SkooL
12-07-2001, 08:03 AM
You are looking for the move command.
It is something like move x,y,seconds;
Check commands.rtf for the proper syntax, because I don't feel like it.

zell12
12-17-2001, 05:10 AM
Originally posted by Mrmicro
Isnt this Part of the forums called "Graal Level Editing" not "NPC Scripting"?
Read the 3 top thread things... one of em is scripting, so it must belong here

LittleBiiru
12-21-2001, 12:37 PM
Lol. Duh..XD