Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Moving light effects (https://forums.graalonline.com/forums/showthread.php?t=18002)

-_Soulhunter_- 11-27-2001 05:02 PM

Moving light effects
 
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

NPC Code:

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

Quote:

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

Levels?
 
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

Re: Levels?
 
Quote:

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

Duh..
 
Lol. Duh..XD


All times are GMT +2. The time now is 01:23 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.