Same technique, minor tweaks. I'm sure it could be further optimized. Still runs well on my p.o.s.
EDIT: Removed edit for stupidity.
EDIT EDIT: If you used this in smaller doses, like on the end of a sprite that looks like a torch, it makes for a great fire effect. I can think of other uses too.. Perhaps particle effects after some magical attack thingie collides?