Graal Forums

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

lancelot9 08-17-2006 04:31 AM

Laser
 
Soo ive been wondering how to do this for just about as long as ive been ganing my own guns

I was wondering if someone could tell me how i set lasers into the ganis.
I heard that i have to save it as a .txt and then script it in, but im not exactly sure how i would do it.

Sulukra 08-17-2006 05:18 PM

Laser firing (Like guns and stuff, atleast I think thats what you're talking about) is usually made as:
A gani of the projectile in four directions
A seperate part of the gun script with a 'shoot' command

Though I'm not sure what the command is in GS2 (Since I don't know GS2), I'm pretty sure thats how its done.

lancelot9 08-17-2006 09:35 PM

Ohh no sorry, i ment like a laser aimer for the gun, like the core electronics pistol or w/e

KuJi 08-18-2006 02:52 AM

Quote:

Originally Posted by lancelot9
Ohh no sorry, i ment like a laser aimer for the gun, like the core electronics pistol or w/e

Aka Laser pointer on a gun for aiming.

shyguy2 08-21-2006 07:03 PM

Ok for adding lazers first off make your image that you want to use as the lazer light thing
and then save it as a regular gani with the lazer positioned where you want it,
like add it as a sprite def and put it where you want it, then once your done changing all that stuff, save it, and open it as a text document, near the bottom where the Default Sprites are defined, put in a couple lines that are like

PHP Code:

COLOREFFECT ID R B G ALPHA 

ex]
PHP Code:

SETBACKTO sog-xmcr-idle
DEFAULTATTR1 hat0
.png
DEFAULTHEAD head19
.png
DEFAULTBODY body
.png
COLOREFFECT 11 1 1 1 0.2
COLOREFFECT 12 1 1 1 0.2
COLOREFFECT 13 1 1 1 0.2
COLOREFFECT 44 1 1 1 0.2 

so that makes all the images with ID 11-13 +44
white with a alpha of .2
;o
hopefully that helps :]


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

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