I have completed the part where the bubble are shot but the problem arises when the bubble container starts moving in y incremental so that slowly the balls comes near the bottom.
But as the balls start moving the calculation for shooting gets disturbed.
Here with I am attaching code. Please anyone look into it and help me out.