Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-27-2001, 05:02 PM
-_Soulhunter_- -_Soulhunter_- is offline
Registered User
Join Date: Nov 2001
Location: Near my computer :D
Posts: 154
-_Soulhunter_- is on a distinguished road
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!!
Reply With Quote
  #2  
Old 11-27-2001, 06:34 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
just like any other moving npc.

or showimg of course, like they are.
Reply With Quote
  #3  
Old 11-27-2001, 06:51 PM
Jerom Jerom is offline
Banned
Jerom's Avatar
Join Date: Mar 2001
Location: In a Trash Can
Posts: 3,708
Jerom is on a distinguished road
Send a message via AIM to Jerom
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!
Reply With Quote
  #4  
Old 11-27-2001, 07:16 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
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.
Reply With Quote
  #5  
Old 11-27-2001, 10:00 PM
-_Soulhunter_- -_Soulhunter_- is offline
Registered User
Join Date: Nov 2001
Location: Near my computer :D
Posts: 154
-_Soulhunter_- is on a distinguished road
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
Reply With Quote
  #6  
Old 12-07-2001, 04:40 AM
Mrmicro Mrmicro is offline
Registered User
Join Date: Mar 2001
Posts: 128
Mrmicro is on a distinguished road
Send a message via AIM to Mrmicro
Levels?

Isnt this Part of the forums called "Graal Level Editing" not "NPC Scripting"?
__________________
Reply With Quote
  #7  
Old 12-07-2001, 08:03 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
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.
__________________
the sky is falling
Reply With Quote
  #8  
Old 12-17-2001, 05:10 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
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
__________________
Reply With Quote
  #9  
Old 12-21-2001, 12:37 PM
LittleBiiru LittleBiiru is offline
Perpetually Perplexed
Join Date: Oct 2001
Posts: 199
LittleBiiru is on a distinguished road
Duh..

Lol. Duh..XD
__________________
01001101011110010010000001001110011000010110110101 10010100100000011010010111001100100000010000110111 01010111001001110100011010010111001100100000010100 10011001010110100101110011011010010110111001100111 01100101011100100010110000100000011000010110111001 10010000100000010010010010000001100001011011010010 00000110000100100000011011100110010101110010011001 0000101110
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:45 PM.


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