Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   lights (https://forums.graalonline.com/forums/showthread.php?t=46980)

bashjgovers 08-10-2003 07:04 PM

lights
 
ive got a question

how do i use lights in ganis?

Dude6252000 08-10-2003 07:51 PM

*snaps* Kai. I need to know the commands to make things appear as lights.

For now, though, add in the sprite you want to be a light in the appropriate(sp, half asleep) places, and once Kai tell you how to script it to be a light, then it should work IN GAME ONLY. It doesn't show as a light in graalshop.

bashjgovers 08-10-2003 09:52 PM

i mean like the flashlight in era, light in ganis. I wanna make flashlights, torches etc

Myomoto 08-10-2003 10:13 PM

He just said it :o

faenix 08-10-2003 10:25 PM

newfeatures2002.txt

Quote:

- there is now support for real transperency:
seteffectmode mode;
changeimgmode index,mode;
EFFECTMODE sprite mode (gani file command)

The command seteffectmode can be used to change
the way the npc image is drawn when using the
setcoloreffect red,green,blue,alpha; command (alpha<1):
by default the image colors are added to the graphics
below, with the intensity of 'alpha', which makes the
image appear like a light since it is making the
graphics below appear more bright; now there are different
modes:
0 - lights (colors are added, alpha specifies intensity)
1 - transparency (alpha specifies how much visible)
2 - holes (colors are subtracted)
Add this code to the script section of the gani and you have a light. If you need an example, go into your ganis folder and open angel.gani with notepad and look at the scripting.


All times are GMT +2. The time now is 04:29 PM.

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