![]() |
flickering light
Please help me design an Npc of a light effect of a light that flickers by changing in magnification slightly. I have tried and tried, but to no avail, and i have only recently started to learn c++(which I know Graal Uses in its own way). Also, would it be possible/easier to do this with a .gani?
|
{full rights preserved to graal2001 i think lol}
if (created) dontblock; //#CLIENTSIDE if (playerenters) { setcoloreffect 1,1,0,0.4; drawaslight; this.light = 2; timeout = 0.05; } if (timeout) { this.light += random(-0.2,0.2); if (!(this.light in |1,3|)) this.light = 2; setzoomeffect this.light; timeout = 0.05; } |
Quote:
|
Quote:
a lot easier |
1 Attachment(s)
-=Josey=-
This may be rather long, but, I'm at work and had to do it quickly. You can change it or do whatever you want with it. It's attached. |
Thanks
Hey Guys, Thanks alot for helpng me out with the code, ill try them all out when i have some time
~ShadoWarrior:D |
You could even use params with the ganis. That way you could just set the gani as like light4.png and than light4.png or something....
|
lol i wrote all right reserved caus i didnt make it its graal 2001's
because i didnt want some ******* people to say "you stole it from graal 2001 you noobie npc stealer" lol a p2p server can use it without any probs i think |
These scripts are from g2k1 and must be given full credit to.
NPC Code: NPC Code: |
Quote:
|
Why don't you just do...
NPC Code: |
| All times are GMT +2. The time now is 03:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.