Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gani lighting effects (https://forums.graalonline.com/forums/showthread.php?t=21643)

Xythar 01-21-2002 07:36 AM

Gani lighting effects
 
I seem to recall Stefan saying a while back that it was possible to use lighting effects in .ganis. Is that true, and how would you do it?

btedji 01-21-2002 08:33 AM

The torch on g2k1 uses light effects in a gani but not sure on how to make it do that

Python523 01-21-2002 10:05 AM

I think you have to edit the .gani file in the txt like open it in wordpad like a .nw file

XeroMaster 01-23-2002 09:52 AM

yep...
 
here is torch_idle in .txt form

NPC Code:

SPRITE 0 SPRITES 0 0 24 12 shadow
SPRITE 1 fire.gif 0 0 30 52 torch fire
SPRITE 2 fire.gif 8 0 14 52 torch light
SPRITE 4 ATTR2 0 0 28 32 torch
SPRITE 40 ATTR1 0 0 48 48 hat up
SPRITE 41 ATTR1 48 0 48 48 hat left
SPRITE 42 ATTR1 96 0 48 48 hat down
SPRITE 43 ATTR1 144 0 48 48 hat right
SPRITE 100 HEAD 0 0 32 32 head up
SPRITE 101 HEAD 0 32 32 32 head left
SPRITE 102 HEAD 0 64 32 32 head down
SPRITE 103 HEAD 0 96 32 32 head right
SPRITE 217 BODY 32 128 32 32 body walking4 left
SPRITE 226 BODY 64 192 32 32 body sword1 down
SPRITE 227 BODY 96 192 32 32 body sword1 right
SPRITE 248 BODY 0 384 32 32 body pushing3 up

DEFAULTATTR1 hat0.png
DEFAULTHEAD head19.gif
DEFAULTBODY body.png
COLOREFFECT 2 1 1 1 0.99
ZOOMEFFECT 2 2

SCRIPT
if (playerenters || timeout) {
if (playerdir==0) showimg 1,light2.png,playerx-31/16,playery-74/16;
if (playerdir==1) showimg 1,light2.png,playerx-52/16,playery-76/16;
if (playerdir==2) showimg 1,light2.png,playerx-56/16,playery-76/16;
if (playerdir==3) showimg 1,light2.png,playerx-32/16,playery-74/16;
changeimgvis 1,3;
changeimgcolors 1,1,0.5,0.5,0.99;
changeimgzoom 1,1.5;
timeout = 0.05;
}
SCRIPTEND

ANI
0 12 34, 248 8 14, 4 23 -4, 1 23 -46, 2 31 -72, 100 8 2, 40 0 -16
0 12 36, 217 10 16, 4 0 -6, 1 0 -48, 2 8 -74, 101 10 2, 41 -2 -16
0 12 34, 226 8 16, 102 8 2, 42 0 -16, 4 -4 -6, 1 -4 -48, 2 4 -74
0 12 36, 227 4 14, 103 4 2, 43 0 -16, 4 20 -4, 1 20 -46, 2 28 -72

ANIEND


aesquivel 01-23-2002 09:22 PM

ummmmm ya lolz


All times are GMT +2. The time now is 05:41 PM.

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