Energy Beam

I'm making a dragonball z type game and when the character does an energy beam attack, i want it to start with a large ergy ball, and have a part that extends all the way until it collides with either that edge of the screen or an opponent, ending with a nother large ball. here are images of the sprites im using to clear up any confusion

i'm using the parts in between the two large balls as the connector


i'm using the parts in between the two large balls as the connector