PDA

View Full Version : Candle



Joe123
05-11-2008, 09:25 AM
Well, I re-coded the candle in a hope that I'd be able to create burn combos.
Except I can't cause we still can't check the type of LWeapons =(


item script candle{
void run(){
int d = Link->Dir;
int x; int y;
lweapon f = Screen->CreateLWeapon(9);
f->Dir = d;
f->Damage = 2;
if(d>1) x = (((d-2)*2)-1)*16;
if(d<2) y = ((d*2)-1)*16;
f->X = Link->X+x;
f->Y = Link->Y+y;
Game->PlaySound(13);
}
}



The best part is that you can have more than 2 flames on the screen though =D

2 flamethrower scripts from Joe123 in one hour :cool: