Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Lighting effect. (https://forums.graalonline.com/forums/showthread.php?t=48314)

Zethar 09-28-2003 11:38 PM

Lighting effect.
 
How do I make lighting effect for my level? Also backpals ect.
Somewhat like the level spark made. Dark with lights.

Blitz_Hunter 09-28-2003 11:53 PM

// NPC made by Stefan Knorr
if (created) {
setimg light2.png;
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}


Ok , where setcoloreffect is simply change those numbers to the light color you would like. Simply follow the R,G,B,A codes. This is just the simple light as in Spark's level you mentioned. For backpals..

//#CLIENTSIDE
if (playerenters)
setbackpal dusk1.png;

You can change the dusk1.png to any others that are in the graal2001\levels\backpals folder. ;)

Nick1988 09-29-2003 01:43 AM

Looks like someone beat me to it, but I would suggest that you use seteffects instead of backpals. They work better. :)


All times are GMT +2. The time now is 03:37 PM.

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