![]() |
attatching scripted light effects
Is there a way to attach a scripted light effect that uses the showing command to a specific sprite? (I use showing because that seems teh easiest to creating such as trails with)
|
you can just add the light effect as a sprite, put it in the gani, then open the gani in a text file and put in changeimgcolors index red green blue alpha.
|
Or you can open the gani with a text editor, jump to the end, add a line:
SCRIPT followed by your script (always clientside, no //#CLIENTSIDE needed, can be GS2 too), and when you are done, one last line: SCRIPTEND Save, upload, and enjoy. |
Since I don't know, what's your scripting or general dev level i will post another reply since both Frankie's and Crow's answers are pretty accurate but i don't think someone with few experience will be able to figure it out what they are trying to say.so i will make a detail guide here.
to add a scripted light effect you have to follow this steps: First, you make your gani as simple and normal gani and use a light sprite definition(the black and white light) wherever you want it to appear Then, when done with the general appearance of your gani and with the light def. in place save the gani and close graal shop. Afterward, open your recently made gani using any notepad(right click on it and press open with... notepad) you will have something like this: this is from a gun with a laser i made: PHP Code:
PHP Code:
PHP Code:
COLOREFFECT <sprite index> <red color effect> <green color effect> <blue color effect> you can add multiple lines to define different color effect to many sprites. in my case i wanted all laser sides to be slightly blueish after that add this script this is in my case but you can modify it to fit your gani, make sure to remove comments as they might cause problems. PHP Code:
hopes this helps you. |
All times are GMT +2. The time now is 09:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.