![]() |
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!! |
just like any other moving npc.
or showimg of course, like they are. |
NPC Code: Poof! A moving light effect! |
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. |
Quote:
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 |
Levels?
Isnt this Part of the forums called "Graal Level Editing" not "NPC Scripting"?
|
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. |
Re: Levels?
Quote:
|
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.