drawing as a light

hey guys
Can someone help me, currently im making some spells and i wanna make different colours so i thought i would make a light, put in a gani and add this code which is located in the actual gani:

SCRIPT
if (created || timeout) {

setcoloreffect 1,1,1,.9;
drawaslight;
timeout=0.05;
}
SCRIPTEND

but when i got to shoot this spell it doesnt show as a light :frowning:
Is what im doing even possible, please help

make one of the sprites of your gani light2.png

underneath the SPRITE portion, put this

COLOREFFECT SPRITEINDEX .8 .8 .8 .6
ZOOMEFFECT SPRITEINDEX .5

If ya can’t tell, put the index of your light2.png sprite inplace of β€œSPRITEINDEX”.
Only works on Static images, not things like ATTR1 / HEAD / BODY etc

hmmm thats no good, i guess ill just use a blank gani and write a bulky script :\ (by bulky i mean like 12 lines which is bulky in my thoughts for a gani):megaeek: